Marginally more robust glibc version test for sync_file_range detection.
This commit is contained in:
parent
4800331bf8
commit
89423052ca
@ -57,7 +57,7 @@
|
|||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#ifdef __GLIBC__
|
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
|
||||||
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
|
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
|
||||||
#define HAVE_SYNC_FILE_RANGE 1
|
#define HAVE_SYNC_FILE_RANGE 1
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user