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
4800331b
Commit
4800331b
authored
Oct 26, 2012
by
charsyam
Browse files
patch config.h for sync_file_range
parent
d2f83d4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.h
View file @
4800331b
...
...
@@ -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