X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/0040fa253fdfeca20d540609aa17a796856744eb..b58ba10526f5894fa74821bd37d6e0324de69aba:/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