From 9b3b110004350e2c512ab24d41af675687bd44e0 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 26 Oct 2012 15:38:21 +0200 Subject: [PATCH] Marginally more robust glibc version test for sync_file_range detection. --- src/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- GitLab