redis: fix compilation on arm64

Closes: https://trac.macports.org/ticket/61808
This commit is contained in:
David Gilman
2021-02-07 02:46:16 -05:00
committed by Chris Jones
parent 2bbd645dbc
commit eaa0a40711
2 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ checksums rmd160 590bec2469980b73e80286cfac7c23aa69d7a9a9 \
sha256 79bbb894f9dceb33ca699ee3ca4a4e1228be7fb5547aeb2f99d921e86c1285bd \
size 2271970
patchfiles patch-redis.conf.diff
patchfiles patch-redis.conf.diff \
patch-arm64.diff
post-patch {
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf
+13
View File
@@ -0,0 +1,13 @@
--- src/debug.c.orig 2021-02-07 02:40:15.441617896 -0500
+++ src/debug.c 2021-02-07 02:36:13.753866520 -0500
@@ -53,6 +53,10 @@
#endif
#endif
+#if defined(__APPLE__) && defined(__arm64__) && defined(USE_JEMALLOC)
+#include <mach/mach.h>
+#endif
+
/* ================================= Debugging ============================== */
/* Compute the sha1 of string at 's' with 'len' bytes long.