Commit 4800331b authored by charsyam's avatar charsyam
Browse files

patch config.h for sync_file_range

parent d2f83d4a
...@@ -56,12 +56,13 @@ ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment