redis/redis-enable-bactrace-on-x86-ia64-and_arm32_only.patch

16 lines
499 B
Diff

Index: src/config.h
===================================================================
--- src/config.h.orig
+++ src/config.h
@@ -65,8 +65,10 @@
#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || \
defined(__FreeBSD__) || (defined(__OpenBSD__) && defined(USE_BACKTRACE))\
|| defined(__DragonFly__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__ia64__) || defined (__arm__)
#define HAVE_BACKTRACE 1
#endif
+#endif
/* MSG_NOSIGNAL. */
#ifdef __linux__