eio: future-proof glibc version detection

This commit is contained in:
Ben Noordhuis 2011-08-14 04:01:57 +02:00
parent 5899192807
commit 035fd5beb0

View File

@ -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