Skip to content

Commit 9b3b110

Browse files
committed
Marginally more robust glibc version test for sync_file_range detection.
1 parent b25b0dc commit 9b3b110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#ifdef __linux__
5858
#include <linux/version.h>
5959
#include <features.h>
60-
#ifdef __GLIBC__
60+
#if defined(__GLIBC__) && defined(__GLIBC_PREREQ)
6161
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
6262
#define HAVE_SYNC_FILE_RANGE 1
6363
#endif

0 commit comments

Comments
 (0)