Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
eio: future-proof glibc version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 14, 2011
1 parent 5899192 commit 035fd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eio/config_linux.h
Expand Up @@ -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
Expand Down

0 comments on commit 035fd5b

Please sign in to comment.