X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/37be27653817f0c4c18d695ceea082e0bb7bf462..178d6903722e80bd68d1b8dacbe3d4fc406d2cb5:/config.h?ds=sidebyside diff --git a/config.h b/config.h index 754d3aa8..6e98fbb2 100644 --- a/config.h +++ b/config.h @@ -35,4 +35,11 @@ #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