X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3bb225d66be633c88ba01c6e7a0cebf91837cd13..fab43727b43de73add99dfc3f25a69ac0777fd67:/config.h 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