Marginally more robust glibc version test for sync_file_range detection.

This commit is contained in:
antirez 2012-10-26 15:38:21 +02:00
parent 4800331bf8
commit 89423052ca

View File

@ -57,7 +57,7 @@
#ifdef __linux__
#include <linux/version.h>
#include <features.h>
#ifdef __GLIBC__
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
#define HAVE_SYNC_FILE_RANGE 1
#endif