From a5dec1f1ad6db6aac97a17dacd72bf26ed51e126 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Tue, 9 Jul 2024 14:40:14 +0000 Subject: [PATCH] fix building fedora40 on arm64 --- deps/Makefile | 1 + deps/coredumper/includes.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 deps/coredumper/includes.patch diff --git a/deps/Makefile b/deps/Makefile index 60b2774147..25bcc603a7 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -115,6 +115,7 @@ ev: libev/libev/.libs/libev.a coredumper/coredumper/src/libcoredumper.a: cd coredumper && rm -rf coredumper-*/ || true cd coredumper && tar -zxf coredumper-*.tar.gz + cd coredumper/coredumper && patch -p1 < ../includes.patch cd coredumper/coredumper && cmake . -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug cd coredumper/coredumper && CC=${CC} CXX=${CXX} ${MAKE} coredumper: coredumper/coredumper/src/libcoredumper.a diff --git a/deps/coredumper/includes.patch b/deps/coredumper/includes.patch new file mode 100644 index 0000000000..c4c1ec09a4 --- /dev/null +++ b/deps/coredumper/includes.patch @@ -0,0 +1,11 @@ +--- coredumper/src/thread_lister.c 2022-12-07 14:57:26.000000000 +0000 ++++ coredumper.patched/src/thread_lister.c 2024-07-09 10:58:42.500458663 +0000 +@@ -35,6 +35,8 @@ + + #include /* needed for NULL on some powerpc platforms (?!) */ + #include ++#include ++#include + + #include "linuxthreads.h" + /* Include other thread listers here that define THREADS macro