1
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
2
// distribute this software is granted provided this copyright notice appears
3
// in all copies. This software is provided "as is" without express or implied
4
// warranty, and with no claim as to its suitability for any purpose.
6
// See http://www.boost.org for most recent version.
8
// generic BSD config options:
10
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
11
#error "This platform is not BSD"
15
#define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__)
16
#elif defined(__NetBSD__)
17
#define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__)
18
#elif defined(__OpenBSD__)
19
#define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__)
23
// is this the correct version check?
24
// FreeBSD has <nl_types.h> but does not
25
// advertise the fact in <unistd.h>:
27
#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
28
# define BOOST_HAS_NL_TYPES_H
32
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
33
// and not in <unistd.h>
35
#if defined(__FreeBSD__) && (__FreeBSD__ <= 3)
36
# define BOOST_HAS_PTHREADS
40
// No wide character support in the BSD header files:
42
#define BOOST_NO_CWCHAR
45
// The BSD <ctype.h> has macros only, no functions:
47
#define BOOST_NO_CTYPE_FUNCTIONS
50
// thread API's not auto detected:
52
#define BOOST_HAS_SCHED_YIELD
53
#define BOOST_HAS_NANOSLEEP
54
#define BOOST_HAS_GETTIMEOFDAY
55
#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
56
#define BOOST_HAS_SIGACTION
59
#define BOOST_HAS_UNISTD_H
60
#include <boost/config/posix_features.hpp>