From b25b0dc5f43e828b784188b6aa9f463a4ccf6f6e Mon Sep 17 00:00:00 2001 From: charsyam Date: Fri, 26 Oct 2012 04:27:58 +0800 Subject: [PATCH] patch config.h for sync_file_range --- src/config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.h b/src/config.h index ce7e53b0..57acb6db 100644 --- a/src/config.h +++ b/src/config.h @@ -56,12 +56,13 @@ * the plain fsync() call. */ #ifdef __linux__ #include +#include #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 -- 2.45.2