提交 b25b0dc5 编写于 作者: C charsyam 提交者: antirez

patch config.h for sync_file_range

上级 2b5fc529
......@@ -56,12 +56,13 @@
* the plain fsync() call. */
#ifdef __linux__
#include <linux/version.h>
#include <features.h>
#ifdef __GLIBC__
#if (LINUX_VERSION_CODE >= 0x020617 && GLIBC_VERSION_AT_LEAST(2, 6))
#if (LINUX_VERSION_CODE >= 0x020611 && __GLIBC_PREREQ(2, 6))
#define HAVE_SYNC_FILE_RANGE 1
#endif
#else
#if (LINUX_VERSION_CODE >= 0x020617)
#if (LINUX_VERSION_CODE >= 0x020611)
#define HAVE_SYNC_FILE_RANGE 1
#endif
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册