patch config.h for sync_file_range
This commit is contained in:
parent
d2f83d4a76
commit
4800331bf8
@ -56,12 +56,13 @@
|
|||||||
* the plain fsync() call. */
|
* the plain fsync() call. */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
|
#include <features.h>
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
#if (LINUX_VERSION_CODE >= 0x020617 && GLIBC_VERSION_AT_LEAST(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
|
||||||
#else
|
#else
|
||||||
#if (LINUX_VERSION_CODE >= 0x020617)
|
#if (LINUX_VERSION_CODE >= 0x020611)
|
||||||
#define HAVE_SYNC_FILE_RANGE 1
|
#define HAVE_SYNC_FILE_RANGE 1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user