eio: Mac OSX 10.5 (Leopard) does not have fdatasync

This commit is contained in:
Clifford Heath 2011-08-26 18:02:20 +02:00 committed by Ben Noordhuis
parent e954b4cd99
commit 835782a980

View File

@ -8,7 +8,11 @@
/* #undef HAVE_FALLOCATE */
/* fdatasync(2) is available */
#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060
#define HAVE_FDATASYNC 1
#else
#define HAVE_FDATASYNC 0
#endif
/* futimes(2) is available */
#define HAVE_FUTIMES 1