X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/d2f83d4a764fc155dbe07f5badecd9b65af699a5..89423052cab4700291f290819d53f4fbb8dabf95:/src/config.h?ds=sidebyside diff --git a/src/config.h b/src/config.h index ce7e53b0..5e6d2807 100644 --- a/src/config.h +++ b/src/config.h @@ -56,12 +56,13 @@ * the plain fsync() call. */ #ifdef __linux__ #include -#ifdef __GLIBC__ -#if (LINUX_VERSION_CODE >= 0x020617 && GLIBC_VERSION_AT_LEAST(2, 6)) +#include +#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) +#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