Commit 89423052 authored by antirez's avatar antirez
Browse files

Marginally more robust glibc version test for sync_file_range detection.

parent 4800331b
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#ifdef __linux__ #ifdef __linux__
#include <linux/version.h> #include <linux/version.h>
#include <features.h> #include <features.h>
#ifdef __GLIBC__ #if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(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
......
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