2001-09-18 11:13:39 +00:00
|
|
|
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
|
|
|
|
// distribute this software is granted provided this copyright notice appears
|
|
|
|
|
// in all copies. This software is provided "as is" without express or implied
|
|
|
|
|
// warranty, and with no claim as to its suitability for any purpose.
|
|
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// generic BSD config options:
|
|
|
|
|
|
|
|
|
|
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
|
|
|
|
|
#error "This platform is not BSD"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __FreeBSD__
|
|
|
|
|
#define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__)
|
|
|
|
|
#elif defined(__NetBSD__)
|
|
|
|
|
#define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__)
|
|
|
|
|
#elif defined(__OpenBSD__)
|
|
|
|
|
#define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// is this the correct version check?
|
2002-02-09 14:55:37 +00:00
|
|
|
// FreeBSD has <nl_types.h> but does not
|
2001-09-18 11:13:39 +00:00
|
|
|
// advertise the fact in <unistd.h>:
|
|
|
|
|
//
|
2002-02-09 14:55:37 +00:00
|
|
|
#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_HAS_NL_TYPES_H
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
//
|
2001-09-24 19:20:53 +00:00
|
|
|
// No wide character support in the BSD header files:
|
2001-09-18 11:13:39 +00:00
|
|
|
//
|
|
|
|
|
#define BOOST_NO_CWCHAR
|
|
|
|
|
|
2001-09-24 19:20:53 +00:00
|
|
|
//
|
|
|
|
|
// The BSD <ctype.h> has macros only, no functions:
|
|
|
|
|
//
|
|
|
|
|
#define BOOST_NO_CTYPE_FUNCTIONS
|
2001-10-26 11:58:23 +00:00
|
|
|
|
2001-10-27 11:06:25 +00:00
|
|
|
//
|
|
|
|
|
// thread API's not auto detected:
|
|
|
|
|
//
|
|
|
|
|
#define BOOST_HAS_SCHED_YIELD
|
|
|
|
|
#define BOOST_HAS_NANOSLEEP
|
|
|
|
|
#define BOOST_HAS_GETTIMEOFDAY
|
2001-10-28 11:57:47 +00:00
|
|
|
#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
2001-10-27 11:06:25 +00:00
|
|
|
|
2001-10-26 11:58:23 +00:00
|
|
|
// boilerplate code:
|
2001-10-27 11:12:54 +00:00
|
|
|
#define BOOST_HAS_UNISTD_H
|
2001-10-26 11:58:23 +00:00
|
|
|
#include <boost/config/posix_features.hpp>
|
|
|
|
|
|
2001-10-28 11:57:47 +00:00
|
|
|
|