From 035fd5beb08751a505792742ee8ea2182b8fc138 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 14 Aug 2011 04:01:57 +0200 Subject: [PATCH] eio: future-proof glibc version detection --- src/eio/config_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eio/config_linux.h b/src/eio/config_linux.h index f27f7f2f..606301fa 100644 --- a/src/eio/config_linux.h +++ b/src/eio/config_linux.h @@ -44,7 +44,7 @@ #define HAVE_STRING_H 1 /* sync_file_range(2) is available if kernel >= 2.6.17 and glibc >= 2.6 */ -#if LINUX_VERSION_CODE >= 0x020611 && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 6 +#if LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6) #define HAVE_SYNC_FILE_RANGE 1 #else #define HAVE_SYNC_FILE_RANGE 0