X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7a932b74cc22097655d6792f64cab66bb0fe1694..178d6903722e80bd68d1b8dacbe3d4fc406d2cb5:/config.h diff --git a/config.h b/config.h index 7cf0f0a3..6e98fbb2 100644 --- a/config.h +++ b/config.h @@ -31,8 +31,15 @@ #define HAVE_EPOLL 1 #endif -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__) +#if (defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined (__NetBSD__) #define HAVE_KQUEUE 1 #endif +/* define aof_fsync to fdatasync() in Linux and fsync() for all the rest */ +#ifdef __linux__ +#define aof_fsync fdatasync +#else +#define aof_fsync fsync +#endif + #endif