pkgsrc/lang/cilk/patches/patch-ac
jtb c9c4feb129 * Use LIBTOOL_OVERRIDE
* Remove a useless chunk from patch-ac

Pointed out by wiz.
2003-07-11 08:15:09 +00:00

15 lines
483 B
Text

$NetBSD: patch-ac,v 1.2 2003/07/11 08:15:09 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++)
{