redis: build fix and minor improvement
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 25 Mar 2013 11:15:34 +0000 (11:15 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 25 Mar 2013 22:36:08 +0000 (23:36 +0100)
commit5b13261dc7be4b82d8e64b08744569090b7da71c
treea954834cfd910952096236d414b722ba8ae31f00
parentbbce7505232614e2ad8638bd20c5057e2fa7764d
redis: build fix and minor improvement

The redis-001-uclibc.patch was properly adding conditionals to ensure
HAVE_BACKTRACE is not defined when uClibc is used. However, __unix
doesn't seem to be define with the toolchain Peter uses on gcc14, so
the <features.h> doesn't get included, therefore __UCLIBC isn't
defined, and the code believes that backtrace support is available. We
fix this by including <features.h> when __linux__ is defined.

Fixes:
http://autobuild.buildroot.org/results/4ba818f877af145a547a1fede0bb738192c2f181/build-end.log.

Also add another patch that do not redefine the _LARGEFILE_SOURCE and
_FILE_OFFSET_BITS macros if they are already defined on the command
line. It avoids the ugly warnings that we could see from the build
logs, and therefore make it easier to spot real errors.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/redis/redis-001-uclibc.patch
package/redis/redis-003-largefile-conditional-define.patch [new file with mode: 0644]