]> git.saurik.com Git - redis.git/commitdiff
Marginally more robust glibc version test for sync_file_range detection.
authorantirez <antirez@gmail.com>
Fri, 26 Oct 2012 13:38:21 +0000 (15:38 +0200)
committerantirez <antirez@gmail.com>
Fri, 26 Oct 2012 13:55:10 +0000 (15:55 +0200)
src/config.h

index 57acb6db40b6dc1084ab35293abf7488acda0f48..5e6d2807271cd04266522fcfd8f0f665b61670f2 100644 (file)
@@ -57,7 +57,7 @@
 #ifdef __linux__
 #include <linux/version.h>
 #include <features.h>
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
 #if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
 #define HAVE_SYNC_FILE_RANGE 1
 #endif