Skip to content

Commit

Permalink
fix building fedora40 on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
mirostauder committed Jul 9, 2024
1 parent 3ce6f99 commit a5dec1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions deps/coredumper/includes.patch
Original file line number Diff line number Diff line change
@@ -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 <stdio.h> /* needed for NULL on some powerpc platforms (?!) */
#include <sys/prctl.h>
+#include <sys/types.h>
+#include <unistd.h>

#include "linuxthreads.h"
/* Include other thread listers here that define THREADS macro

0 comments on commit a5dec1f

Please sign in to comment.