0001-uclibc.patch 1.3 KB

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