summaryrefslogtreecommitdiffstats
path: root/sysutils/dvd+rw-tools/files/patch-mp.h
blob: c9e4569be9f3d773a62ac845dde9be8f8e0ffbc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- mp.h.orig	Mon Jan 16 11:34:56 2006
+++ mp.h	Thu Jan 19 20:22:30 2006
@@ -39,7 +39,9 @@
   pthread_attr_t attr;
 
     if (pthread_attr_init(&attr)==0 &&
+#if	!defined(__FreeBSD__) || __FreeBSD__ >= 5
 	pthread_attr_setscope(&attr,PTHREAD_SCOPE_SYSTEM)==0 &&
+#endif	/* FreeBSD 4 does not support PTHREAD_SCOPE_SYSTEM */
 	pthread_create(&h,&attr,(void *(*)(void *))func,arg)==0 )
 	return (void *)h;
 
OpenPOWER on IntegriCloud