From: charsyam Date: Thu, 25 Oct 2012 20:27:58 +0000 (+0800) Subject: patch config.h for sync_file_range X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/b25b0dc5f43e828b784188b6aa9f463a4ccf6f6e?ds=sidebyside patch config.h for sync_file_range --- 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