pkgsrc/devel/ArX/patches/patch-ac

39 lines
1 KiB
Text

$NetBSD: patch-ac,v 1.1 2007/09/20 20:47:03 wiz Exp $
--- src/boost/boost/config/platform/bsd.hpp.orig 2005-01-03 23:55:25.000000000 +0000
+++ src/boost/boost/config/platform/bsd.hpp
@@ -9,7 +9,7 @@
// generic BSD config options:
-#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
#error "This platform is not BSD"
#endif
@@ -21,6 +21,10 @@
#define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__)
#endif
+#if defined(__DragonFly__)
+#define _REENTRANT 1
+#endif
+
//
// is this the correct version check?
// FreeBSD has <nl_types.h> but does not
@@ -41,7 +45,14 @@
//
// No wide character support in the BSD header files:
//
+#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5))) && !defined(__DragonFly__)
#define BOOST_NO_CWCHAR
+#endif
+
+#ifdef __DragonFly__
+#define WCHAR_MIN INT_MIN
+#define WCHAR_MAX INT_MAX
+#endif
//
// The BSD <ctype.h> has macros only, no functions: