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.
9 In file included from redis.h:33:0,
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
24 +#ifndef _LARGEFILE_SOURCE
25 #define _LARGEFILE_SOURCE
28 +#ifndef _FILE_OFFSET_BITS
29 #define _FILE_OFFSET_BITS 64