summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-10-26 15:38:21 +0200
committerantirez <antirez@gmail.com>2012-10-26 15:55:10 +0200
commit9b3b110004350e2c512ab24d41af675687bd44e0 (patch)
tree09e96896abb19b9fbab3838d8d88ea785dd50c95
parentb25b0dc5f43e828b784188b6aa9f463a4ccf6f6e (diff)
downloadredis-9b3b110004350e2c512ab24d41af675687bd44e0.tar.gz
Marginally more robust glibc version test for sync_file_range detection.
-rw-r--r--src/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 57acb6db4..5e6d28072 100644
--- a/src/config.h
+++ b/src/config.h
@@ -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