blob: eeb972121cef89b95fc2adeecb0b8fa5489e2a38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-ad,v 1.2 2006/06/11 15:22:21 wiz Exp $
--- mp.h.orig 2006-01-26 13:13:32.000000000 +0000
+++ mp.h
@@ -40,7 +40,9 @@ static void *__thread_create(int (*func)
if (pthread_attr_init(&attr)==0 &&
pthread_attr_setstacksize(&attr,64*1024)==0 &&
+#ifndef __NetBSD__
pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 &&
+#endif
pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 )
return (void *)h;
|