2003-10-04 11:29:20 +00:00
|
|
|
// (C) Copyright John Maddock 2001 - 2003.
|
|
|
|
|
// (C) Copyright Darin Adler 2001.
|
|
|
|
|
// (C) Copyright Douglas Gregor 2002.
|
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2001-09-18 11:13:39 +00:00
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
|
|
// generic BSD config options:
|
|
|
|
|
|
2005-08-24 15:45:17 +00:00
|
|
|
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__)
|
2001-09-18 11:13:39 +00:00
|
|
|
#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__)
|
2005-08-24 15:45:17 +00:00
|
|
|
#elif defined(__DragonFly__)
|
|
|
|
|
#define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__)
|
2001-09-18 11:13:39 +00:00
|
|
|
#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>:
|
|
|
|
|
//
|
2005-08-24 15:45:17 +00:00
|
|
|
#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__)
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_HAS_NL_TYPES_H
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-02-09 15:02:48 +00:00
|
|
|
//
|
|
|
|
|
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
|
|
|
|
|
// and not in <unistd.h>
|
|
|
|
|
//
|
2006-02-16 11:05:44 +00:00
|
|
|
#if (defined(__FreeBSD__) && (__FreeBSD__ <= 3)) || defined(__OpenBSD__)
|
2002-02-09 15:02:48 +00:00
|
|
|
# define BOOST_HAS_PTHREADS
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-09-18 11:13:39 +00:00
|
|
|
//
|
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
|
|
|
//
|
2005-01-12 12:37:18 +00:00
|
|
|
#if !(defined(__FreeBSD__) && (__FreeBSD__ >= 5))
|
|
|
|
|
# define BOOST_NO_CWCHAR
|
|
|
|
|
#endif
|
2001-09-24 19:20:53 +00:00
|
|
|
//
|
|
|
|
|
// The BSD <ctype.h> has macros only, no functions:
|
|
|
|
|
//
|
2004-02-27 13:13:00 +00:00
|
|
|
#if !defined(__OpenBSD__)
|
|
|
|
|
# define BOOST_NO_CTYPE_FUNCTIONS
|
|
|
|
|
#endif
|
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
|
2003-02-13 12:28:49 +00:00
|
|
|
#define BOOST_HAS_SIGACTION
|
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
|
|
|
|
2003-01-18 11:30:51 +00:00
|
|
|
|
2003-01-24 12:44:33 +00:00
|
|
|
|
2003-01-25 11:56:53 +00:00
|
|
|
|
2003-10-04 11:29:20 +00:00
|
|
|
|