summaryrefslogtreecommitdiff
path: root/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c')
-rw-r--r--lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c b/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c
new file mode 100644
index 00000000000..539fccf1dcb
--- /dev/null
+++ b/lang/gcc49/patches/patch-libcilkrts_runtime_signal_node.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-libcilkrts_runtime_signal_node.c,v 1.1 2014/11/28 11:47:01 bsiegert Exp $
+
+Work around broken <semaphore.h> in glibc < 2.5.
+
+Corresponding Debian bug report:
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402318
+
+--- libcilkrts/runtime/signal_node.c.orig 2014-10-20 00:37:57.000000000 +0200
++++ libcilkrts/runtime/signal_node.c 2014-10-20 00:38:36.000000000 +0200
+@@ -51,6 +51,7 @@
+ typedef HANDLE cilk_semaphore_t;
+ #else // Linux/MIC
+ # include <errno.h>
++# include <pthread.h>
+ # include <semaphore.h>
+ # include <stdio.h>
+ typedef sem_t cilk_semaphore_t;