Files
pkgsrc-ng/sysutils/dvd+rw-tools/patches/patch-ad
2013-09-26 17:14:40 +02:00

15 lines
466 B
Plaintext

$NetBSD: patch-ad,v 1.4 2008/04/23 15:35:50 wiz Exp $
--- mp.h.orig 2008-02-24 18:56:07.000000000 +0100
+++ mp.h
@@ -46,7 +46,9 @@ static void *__thread_create(int (*func)
if (pthread_attr_init(&attr)==0 &&
pthread_attr_setstacksize(&attr,stack_sz)==0 &&
+#if !defined(__NetBSD__) && !defined(__DragonFly__)
pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 &&
+#endif
pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 )
return (void *)h;