summaryrefslogtreecommitdiff
path: root/lang/cilk/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cilk/patches/patch-ac')
-rw-r--r--lang/cilk/patches/patch-ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/cilk/patches/patch-ac b/lang/cilk/patches/patch-ac
new file mode 100644
index 00000000000..da584eb1a95
--- /dev/null
+++ b/lang/cilk/patches/patch-ac
@@ -0,0 +1,20 @@
+$NetBSD: patch-ac,v 1.1 2003/07/11 07:28:13 jtb Exp $
+
+--- runtime/workers.c.orig
++++ runtime/workers.c
+@@ -60,8 +60,10 @@
+ CILK_CHECK(tid, (NULL, "could not malloc tid\n"));
+
+ pthread_attr_init(&attr); /* initialize attr with default attributes */
++#ifdef PTHREAD_SCOPE_SYSTEM
+ pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
+ /* system-wide contention */
++#endif
+
+ for (i = 0; i < USE_PARAMETER(active_size); i++)
+ {
+@@ -82,4 +84,3 @@
+ res, i));
+ }
+ }
+-