From: antirez Date: Fri, 26 Oct 2012 13:38:21 +0000 (+0200) Subject: Marginally more robust glibc version test for sync_file_range detection. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/89423052cab4700291f290819d53f4fbb8dabf95?hp=4800331bf859f5bb0313a7187963f1cc9b7e2a1c Marginally more robust glibc version test for sync_file_range detection. --- diff --git a/src/config.h b/src/config.h index 57acb6db..5e6d2807 100644 --- a/src/config.h +++ b/src/config.h @@ -57,7 +57,7 @@ #ifdef __linux__ #include #include -#ifdef __GLIBC__ +#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) #if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6)) #define HAVE_SYNC_FILE_RANGE 1 #endif