Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
72f42cf4
Commit
72f42cf4
authored
Oct 26, 2012
by
charsyam
Committed by
antirez
Oct 30, 2012
Browse files
patch config.h for sync_file_range
parent
2a49aa1d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.h
View file @
72f42cf4
...
...
@@ -56,12 +56,13 @@
* the plain fsync() call. */
#ifdef __linux__
#include <linux/version.h>
#include <features.h>
#ifdef __GLIBC__
#if (LINUX_VERSION_CODE >= 0x02061
7
&& GLIBC_
VERSION_AT_LEAST
(2, 6))
#if (LINUX_VERSION_CODE >= 0x02061
1
&&
__
GLIBC_
PREREQ
(2, 6))
#define HAVE_SYNC_FILE_RANGE 1
#endif
#else
#if (LINUX_VERSION_CODE >= 0x02061
7
)
#if (LINUX_VERSION_CODE >= 0x02061
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