aboutsummaryrefslogtreecommitdiffstats
path: root/main/gc/fix-boehm-gc.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-30 14:08:04 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-30 14:08:04 +0000
commitcd8870218ef28dab192ae4507698575a33fd91cd (patch)
tree7e98bbc4eba6e894b7233e1a7183537d99f95fd8 /main/gc/fix-boehm-gc.patch
parent2a459269ce32598411253ae323fa8cc2f71821fd (diff)
downloadaports-cd8870218ef28dab192ae4507698575a33fd91cd.tar.bz2
aports-cd8870218ef28dab192ae4507698575a33fd91cd.tar.xz
main/gc: fix musl build
Diffstat (limited to 'main/gc/fix-boehm-gc.patch')
-rw-r--r--main/gc/fix-boehm-gc.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/gc/fix-boehm-gc.patch b/main/gc/fix-boehm-gc.patch
new file mode 100644
index 0000000000..88ffc99d79
--- /dev/null
+++ b/main/gc/fix-boehm-gc.patch
@@ -0,0 +1,11 @@
+--- gc-7.2.orig/os_dep.c
++++ gc-7.2/os_dep.c
+@@ -26,7 +26,7 @@
+ # define __KERNEL__
+ # include <asm/signal.h>
+ # undef __KERNEL__
+-# else
++# elif defined(__GLIBC__)
+ /* Kernels prior to 2.1.1 defined struct sigcontext_struct instead of */
+ /* struct sigcontext. libc6 (glibc2) uses "struct sigcontext" in */
+ /* prototypes, so we have to include the top-level sigcontext.h to */