aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-01-20 21:26:57 +0800
committerpav <pav@FreeBSD.org>2006-01-20 21:26:57 +0800
commit1fe21f9409091e772e73070c634044500dc99358 (patch)
tree3559c1ffcd6b73a0f969c3f871de7a2b05d49a1c /sysutils
parent1817cb48046a3347f2de9124f790088038b27fa3 (diff)
downloadfreebsd-ports-gnome-1fe21f9409091e772e73070c634044500dc99358.tar.gz
freebsd-ports-gnome-1fe21f9409091e772e73070c634044500dc99358.tar.zst
freebsd-ports-gnome-1fe21f9409091e772e73070c634044500dc99358.zip
- Fix pthread usage under FreeBSD 4.X
PR: ports/92018 Submitted by: Sven Berkvens-Matthijsse <sven@berkvens.net> Approved by: Chuck Swiger <chuck@pkix.net> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/dvd+rw-tools/Makefile1
-rw-r--r--sysutils/dvd+rw-tools/files/patch-mp.h12
2 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/dvd+rw-tools/Makefile b/sysutils/dvd+rw-tools/Makefile
index 8a2fb22c164a..3d70192f83d5 100644
--- a/sysutils/dvd+rw-tools/Makefile
+++ b/sysutils/dvd+rw-tools/Makefile
@@ -6,6 +6,7 @@
PORTNAME= dvd+rw-tools
PORTVERSION= 6.0
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.pkix.net/mirror/fy.chalmers.se/ \
http://fy.chalmers.se/~appro/linux/DVD+RW/tools/
diff --git a/sysutils/dvd+rw-tools/files/patch-mp.h b/sysutils/dvd+rw-tools/files/patch-mp.h
new file mode 100644
index 000000000000..c9e4569be9f3
--- /dev/null
+++ b/sysutils/dvd+rw-tools/files/patch-mp.h
@@ -0,0 +1,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;
+