Permalink
Browse files

eio: future-proof glibc version detection

  • Loading branch information...
bnoordhuis committed Aug 14, 2011
1 parent 5899192 commit 035fd5beb08751a505792742ee8ea2182b8fc138
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/eio/config_linux.h
View
@@ -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

0 comments on commit 035fd5b

Please sign in to comment.