Initial Commit
- initial default booting image
This commit is contained in:
35
package/redis/0002-largefile-conditional-define.patch
Normal file
35
package/redis/0002-largefile-conditional-define.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
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>
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.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
|
||||
@@ -55,8 +55,13 @@
|
||||
#define _POSIX_C_SOURCE 199506L
|
||||
#endif
|
||||
|
||||
+#ifndef _LARGEFILE_SOURCE
|
||||
#define _LARGEFILE_SOURCE
|
||||
+#endif
|
||||
+
|
||||
+#ifndef _FILE_OFFSET_BITS
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
+#endif
|
||||
|
||||
/* deprecate unsafe functions
|
||||
*
|
||||
Reference in New Issue
Block a user