X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/566c3c7a22c0ec217c40f7a95db2bb83c8cc16c7..178d6903722e80bd68d1b8dacbe3d4fc406d2cb5:/config.h diff --git a/config.h b/config.h index d1da9887..6e98fbb2 100644 --- a/config.h +++ b/config.h @@ -35,9 +35,11 @@ #define HAVE_KQUEUE 1 #endif -/* test for O_DIRECT */ +/* define aof_fsync to fdatasync() in Linux and fsync() for all the rest */ #ifdef __linux__ -#define HAVE_O_DIRECT 1 +#define aof_fsync fdatasync +#else +#define aof_fsync fsync #endif #endif