diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2015-01-21 09:21:42 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2015-01-23 16:45:38 +0100 |
commit | d226500192dcac84e5fdeba6867ee51ceb402c4c (patch) | |
tree | ffb853bbf5d781b3d5a94d3a6a9306307a66c06d /package/redis/0002-largefile-conditional-define.patch | |
parent | 9a4d760e1b0d3e4ff81f855486668952a20701df (diff) | |
download | buildroot-d226500192dcac84e5fdeba6867ee51ceb402c4c.tar.gz buildroot-d226500192dcac84e5fdeba6867ee51ceb402c4c.zip |
redis: bump to version 2.8.19
Add hash file.
Drop redis-002-lua-AR.patch (upstream).
Rename patches to new naming convention.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/redis/0002-largefile-conditional-define.patch')
-rw-r--r-- | package/redis/0002-largefile-conditional-define.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/redis/0002-largefile-conditional-define.patch b/package/redis/0002-largefile-conditional-define.patch new file mode 100644 index 0000000000..747e0552b3 --- /dev/null +++ b/package/redis/0002-largefile-conditional-define.patch @@ -0,0 +1,32 @@ +Define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS conditionally + +In order to avoid ugly warnings at compile time, only define +_LARGEFILE_SOURCE and _FILE_OFFSET_BITS if they have not already been +defined through the build command line. + +Avoids: + + In file included from redis.h:33:0, + from migrate.c:1: + fmacros.h:45:0: warning: "_LARGEFILE_SOURCE" redefined + <command-line>:0:0: note: this is the location of the previous definition + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +Index: redis-2.6.11/src/fmacros.h +=================================================================== +--- redis-2.6.11.orig/src/fmacros.h 2013-03-25 22:09:15.000000000 +0100 ++++ redis-2.6.11/src/fmacros.h 2013-03-25 22:09:40.000000000 +0100 +@@ -42,7 +42,12 @@ + #define _XOPEN_SOURCE + #endif + ++#ifndef _LARGEFILE_SOURCE + #define _LARGEFILE_SOURCE ++#endif ++ ++#ifndef _FILE_OFFSET_BITS + #define _FILE_OFFSET_BITS 64 ++#endif + + #endif |