diff options
author | antirez <antirez@gmail.com> | 2012-10-26 15:38:21 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-10-26 15:55:10 +0200 |
commit | 9b3b110004350e2c512ab24d41af675687bd44e0 (patch) | |
tree | 09e96896abb19b9fbab3838d8d88ea785dd50c95 | |
parent | b25b0dc5f43e828b784188b6aa9f463a4ccf6f6e (diff) | |
download | redis-9b3b110004350e2c512ab24d41af675687bd44e0.tar.gz |
Marginally more robust glibc version test for sync_file_range detection.
-rw-r--r-- | src/config.h | 2 |
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 |