Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
89423052
Commit
89423052
authored
Oct 26, 2012
by
antirez
Browse files
Marginally more robust glibc version test for sync_file_range detection.
parent
4800331b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.h
View file @
89423052
...
@@ -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
def
ined(__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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment