patch config.h for sync_file_range

This commit is contained in:
charsyam 2012-10-26 04:27:58 +08:00
parent d2f83d4a76
commit 4800331bf8

View File

@ -56,12 +56,13 @@
* the plain fsync() call. */
#ifdef __linux__
#include <linux/version.h>
#include <features.h>
#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
#endif
#else
#if (LINUX_VERSION_CODE >= 0x020617)
#if (LINUX_VERSION_CODE >= 0x020611)
#define HAVE_SYNC_FILE_RANGE 1
#endif
#endif