1 #ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT 2 #define _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT 3 4 5 #include_next <sys/stat.h> 6 7 #include <sys/cdefs.h> 8 9 10 #ifndef UTIME_NOW 11 # define UTIME_NOW (-1) 12 # define UTIME_OMIT (-2) 13 14 __BEGIN_DECLS 15 16 /* assume that futimens() and utimensat() aren't available */ 17 int futimens(int fd, const struct timespec times[2]); 18 int utimensat(int fd, const char* path, const struct timespec times[2], 19 int flag); 20 21 __END_DECLS 22 23 # ifndef _HAIKU_BUILD_NO_FUTIMENS 24 # define _HAIKU_BUILD_NO_FUTIMENS 1 25 # endif 26 # ifndef _HAIKU_BUILD_NO_UTIMENSAT 27 # define _HAIKU_BUILD_NO_UTIMENSAT 1 28 # endif 29 #endif 30 31 32 #endif /* _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT */ 33