libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / redis / 0002-largefile-conditional-define.patch
blob747e0552b3796007fed94f0e7482094cc12d4cec
1 Define _LARGEFILE_SOURCE and _FILE_OFFSET_BITS conditionally
3 In order to avoid ugly warnings at compile time, only define
4 _LARGEFILE_SOURCE and _FILE_OFFSET_BITS if they have not already been
5 defined through the build command line.
7 Avoids:
9 In file included from redis.h:33:0,
10 from migrate.c:1:
11 fmacros.h:45:0: warning: "_LARGEFILE_SOURCE" redefined
12 <command-line>:0:0: note: this is the location of the previous definition
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
16 Index: redis-2.6.11/src/fmacros.h
17 ===================================================================
18 --- redis-2.6.11.orig/src/fmacros.h 2013-03-25 22:09:15.000000000 +0100
19 +++ redis-2.6.11/src/fmacros.h 2013-03-25 22:09:40.000000000 +0100
20 @@ -42,7 +42,12 @@
21 #define _XOPEN_SOURCE
22 #endif
24 +#ifndef _LARGEFILE_SOURCE
25 #define _LARGEFILE_SOURCE
26 +#endif
28 +#ifndef _FILE_OFFSET_BITS
29 #define _FILE_OFFSET_BITS 64
30 +#endif
32 #endif