1 | // (C) Copyright John Maddock 2001 - 2003. |
---|
2 | // (C) Copyright Darin Adler 2001. |
---|
3 | // (C) Copyright Douglas Gregor 2002. |
---|
4 | // Use, modification and distribution are subject to the |
---|
5 | // Boost Software License, Version 1.0. (See accompanying file |
---|
6 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
7 | |
---|
8 | // See http://www.boost.org for most recent version. |
---|
9 | |
---|
10 | // generic BSD config options: |
---|
11 | |
---|
12 | #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) |
---|
13 | #error "This platform is not BSD" |
---|
14 | #endif |
---|
15 | |
---|
16 | #ifdef __FreeBSD__ |
---|
17 | #define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__) |
---|
18 | #elif defined(__NetBSD__) |
---|
19 | #define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__) |
---|
20 | #elif defined(__OpenBSD__) |
---|
21 | #define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__) |
---|
22 | #elif defined(__DragonFly__) |
---|
23 | #define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__) |
---|
24 | #endif |
---|
25 | |
---|
26 | // |
---|
27 | // is this the correct version check? |
---|
28 | // FreeBSD has <nl_types.h> but does not |
---|
29 | // advertise the fact in <unistd.h>: |
---|
30 | // |
---|
31 | #if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__) |
---|
32 | # define BOOST_HAS_NL_TYPES_H |
---|
33 | #endif |
---|
34 | |
---|
35 | // |
---|
36 | // FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h> |
---|
37 | // and not in <unistd.h> |
---|
38 | // |
---|
39 | #if defined(__FreeBSD__) && (__FreeBSD__ <= 3) |
---|
40 | # define BOOST_HAS_PTHREADS |
---|
41 | #endif |
---|
42 | |
---|
43 | // |
---|
44 | // No wide character support in the BSD header files: |
---|
45 | // |
---|
46 | #if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5)) |
---|
47 | # define BOOST_NO_CWCHAR |
---|
48 | #endif |
---|
49 | // |
---|
50 | // The BSD <ctype.h> has macros only, no functions: |
---|
51 | // |
---|
52 | #if !defined(__OpenBSD__) |
---|
53 | # define BOOST_NO_CTYPE_FUNCTIONS |
---|
54 | #endif |
---|
55 | |
---|
56 | // |
---|
57 | // thread API's not auto detected: |
---|
58 | // |
---|
59 | #define BOOST_HAS_SCHED_YIELD |
---|
60 | #define BOOST_HAS_NANOSLEEP |
---|
61 | #define BOOST_HAS_GETTIMEOFDAY |
---|
62 | #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE |
---|
63 | #define BOOST_HAS_SIGACTION |
---|
64 | |
---|
65 | // boilerplate code: |
---|
66 | #define BOOST_HAS_UNISTD_H |
---|
67 | #include <boost/config/posix_features.hpp> |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|