22 #ifndef XAPIAN_INCLUDED_POSIXY_WRAPPER_H
23 #define XAPIAN_INCLUDED_POSIXY_WRAPPER_H
27 int posixy_set_errno_from_getlasterror();
44 # include <sys/types.h>
47 # define posixy_open ::open
48 # define posixy_rename(F, T) std::rename(F, T)
51 #if defined __CYGWIN__ || defined __WIN32__
58 # define posixy_unlink(F) unlink(F)
#define posixy_rename(F, T)
include <fcntl.h>, but working around broken platforms.
include <sys/stat.h> with portability enhancements
<unistd.h>, but with compat.