]> git.saurik.com Git - redis.git/blobdiff - src/config.h
patch config.h for sync_file_range
[redis.git] / src / config.h
index ce7e53b02392972b4e1972bbfc86acd5bdcf8749..57acb6db40b6dc1084ab35293abf7488acda0f48 100644 (file)
  * the plain fsync() call. */
 #ifdef __linux__
 #include <linux/version.h>
+#include <features.h>
 #ifdef __GLIBC__
-#if (LINUX_VERSION_CODE >= 0x020617 && GLIBC_VERSION_AT_LEAST(2, 6))
+#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
 #define HAVE_SYNC_FILE_RANGE 1
 #endif
 #else
-#if (LINUX_VERSION_CODE >= 0x020617)
+#if (LINUX_VERSION_CODE >= 0x020611)
 #define HAVE_SYNC_FILE_RANGE 1
 #endif
 #endif