blob: 6c239de30584214037945f9f230ed69723549b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-af,v 1.2 2006/01/20 20:40:19 jmmv Exp $
--- boost/config/platform/bsd.hpp.orig 2005-08-24 17:45:17.000000000 +0200
+++ boost/config/platform/bsd.hpp
@@ -23,6 +23,10 @@
#define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__)
#endif
+#if defined(__DragonFly__)
+#define _REENTRANT 1
+#endif
+
//
// is this the correct version check?
// FreeBSD has <nl_types.h> but does not
@@ -36,20 +40,20 @@
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
// and not in <unistd.h>
//
-#if defined(__FreeBSD__) && (__FreeBSD__ <= 3)
+#if defined(__DragonFly__) || defined(__FreeBSD__) && (__FreeBSD__ <= 3)
# define BOOST_HAS_PTHREADS
#endif
//
// No wide character support in the BSD header files:
//
-#if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5))
+#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5))) && !defined(__DragonFly__)
# define BOOST_NO_CWCHAR
#endif
//
// The BSD <ctype.h> has macros only, no functions:
//
-#if !defined(__OpenBSD__)
+#if !defined(__OpenBSD__) && !defined(__DragonFly__)
# define BOOST_NO_CTYPE_FUNCTIONS
#endif
|