summaryrefslogtreecommitdiffstats
path: root/redis-oldglibc.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-10-24 18:50:11 +0200
committerRemi Collet <fedora@famillecollet.com>2012-10-24 18:50:11 +0200
commitcf16567d409efd7247047824f8ea5d0327bb3f0c (patch)
tree0a4ac592af37bd5c85c4ed29cfbde226890e531d /redis-oldglibc.patch
parent070923e935583efafe2024271c09dece06cd6481 (diff)
Redis 2.6.0 is the latest stable version
Diffstat (limited to 'redis-oldglibc.patch')
-rw-r--r--redis-oldglibc.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/redis-oldglibc.patch b/redis-oldglibc.patch
new file mode 100644
index 0000000..7052f6d
--- /dev/null
+++ b/redis-oldglibc.patch
@@ -0,0 +1,17 @@
+diff -up redis-2.6.0/src/config.h.el5 redis-2.6.0/src/config.h
+--- redis-2.6.0/src/config.h.el5 2012-10-24 17:51:51.000000000 +0200
++++ redis-2.6.0/src/config.h 2012-10-24 17:52:35.000000000 +0200
+@@ -52,13 +52,7 @@
+ #define aof_fsync fsync
+ #endif
+
+-/* Define rdb_fsync_range to sync_file_range() on Linux, otherwise we use
+- * the plain fsync() call. */
+-#ifdef __linux__
+-#define rdb_fsync_range(fd,off,size) sync_file_range(fd,off,size,SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE)
+-#else
+ #define rdb_fsync_range(fd,off,size) fsync(fd)
+-#endif
+
+ /* Byte ordering detection */
+ #include <sys/types.h> /* This will likely define BYTE_ORDER */