xref: /OK3568_Linux_fs/buildroot/package/redis/0001-uclibc.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1redis-001-uclibc.patch: This patch fixes redis so that it can be compiled
2against uclibc.  Patch originates from:
3
4  Support cross-compiling for uClibc targets
5  https://github.com/antirez/redis/pull/537
6  Mike Steinert, mike.steinert@gmail.com
7
8Signed-off-by: Daniel Price <daniel.price@gmail.com>
9[Martin: adapt to 3.0.3]
10Signed-off-by: Martin Bark <martin@barkynet.com>
11[Titouan: adapt to 5.0.4]
12Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
13[Fabrice: update for 6.0.9]
14Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
15
16=========================================================================
17diff -ur old/src/config.h new/src/config.h
18--- old/src/config.h	2012-10-26 07:20:24.000000000 -0700
19+++ new/src/config.h	2012-10-31 13:41:51.206309564 -0700
20@@ -62,7 +62,7 @@
21 #endif
22
23 /* Test for backtrace() */
24-#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \
25+#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__) && !defined(__UCLIBC__)) || \
26     defined(__FreeBSD__) || ((defined(__OpenBSD__) || defined(__NetBSD__)) && defined(USE_BACKTRACE))\
27  || defined(__DragonFly__)
28 #define HAVE_BACKTRACE 1
29