summaryrefslogtreecommitdiff
path: root/meta-pkgs/boost/patches
diff options
context:
space:
mode:
authoradam <adam>2009-08-21 14:54:30 +0000
committeradam <adam>2009-08-21 14:54:30 +0000
commit91a853078457dde891645e2d8cb85261308b5f44 (patch)
tree07758606c029a1f687fb3179d916807f185b7975 /meta-pkgs/boost/patches
parenta083cb7570bd0ccf9faad6f3986742c1b4cae15a (diff)
downloadpkgsrc-91a853078457dde891645e2d8cb85261308b5f44.tar.gz
Fixed detection of threads on NetBSD
Diffstat (limited to 'meta-pkgs/boost/patches')
-rw-r--r--meta-pkgs/boost/patches/patch-ab13
-rw-r--r--meta-pkgs/boost/patches/patch-ac13
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-pkgs/boost/patches/patch-ab b/meta-pkgs/boost/patches/patch-ab
new file mode 100644
index 00000000000..38323523525
--- /dev/null
+++ b/meta-pkgs/boost/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2009/08/21 14:54:30 adam Exp $
+
+--- boost/config/platform/bsd.hpp.orig 2009-08-20 17:55:59.000000000 +0200
++++ boost/config/platform/bsd.hpp
+@@ -37,7 +37,7 @@
+ // and not in <unistd.h>
+ //
+ #if (defined(__FreeBSD__) && (__FreeBSD__ <= 3))\
+- || defined(__OpenBSD__) || defined(__DragonFly__)
++ || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
+ # define BOOST_HAS_PTHREADS
+ #endif
+
diff --git a/meta-pkgs/boost/patches/patch-ac b/meta-pkgs/boost/patches/patch-ac
new file mode 100644
index 00000000000..cd2ac96cc73
--- /dev/null
+++ b/meta-pkgs/boost/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.4 2009/08/21 14:54:30 adam Exp $
+
+--- boost/config/suffix.hpp.orig 2009-08-20 19:36:39.000000000 +0200
++++ boost/config/suffix.hpp
+@@ -224,7 +224,7 @@
+ //
+ #if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \
+ || defined(_PTHREADS) || defined(__APPLE__) || defined(__DragonFly__)) \
+- && !defined(BOOST_HAS_THREADS)
++ || defined(__NetBSD__) && !defined(BOOST_HAS_THREADS)
+ # define BOOST_HAS_THREADS
+ #endif
+