pkgsrc/meta-pkgs/boost/patches/patch-ab
ryoon 1484896e13 Fix build of boost-libs under OpenBSD/amd64 5.5
* Add iconv dependency (fix build)
* Add the patches for OpenBSD
* gcc46 is required under OpenBSD 5.5 at least
2014-05-13 18:48:49 +00:00

31 lines
1,000 B
Text

$NetBSD: patch-ab,v 1.6 2014/05/13 18:48:49 ryoon Exp $
--- boost/config/platform/bsd.hpp.orig 2011-03-07 13:07:30.000000000 +0000
+++ 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
@@ -56,13 +56,15 @@
#endif
#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \
- || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) || defined(__DragonFly__))
+ || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) \
+ || defined(__DragonFly__) \
+ || defined(__OpenBSD__))
# define BOOST_NO_CWCHAR
#endif
//
// The BSD <ctype.h> has macros only, no functions:
//
-#if !defined(__OpenBSD__) || defined(__DragonFly__)
+#if !defined(__OpenBSD__) && !defined(__DragonFly__)
# define BOOST_NO_CTYPE_FUNCTIONS
#endif