~ubuntu-branches/ubuntu/saucy/rrootage/saucy

« back to all changes in this revision

Viewing changes to src/bulletml/boost/config/platform/bsd.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Miriam Ruiz
  • Date: 2005-04-07 02:21:00 UTC
  • Revision ID: james.westby@ubuntu.com-20050407022100-uokbm0q4wxf9iad3
Tags: upstream-0.23a
ImportĀ upstreamĀ versionĀ 0.23a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
5
 
 
6
//  See http://www.boost.org for most recent version.
 
7
 
 
8
//  generic BSD config options:
 
9
 
 
10
#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
 
11
#error "This platform is not BSD"
 
12
#endif
 
13
 
 
14
#ifdef __FreeBSD__
 
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__)
 
20
#endif
 
21
 
 
22
//
 
23
// is this the correct version check?
 
24
// FreeBSD has <nl_types.h> but does not
 
25
// advertise the fact in <unistd.h>:
 
26
//
 
27
#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
 
28
#  define BOOST_HAS_NL_TYPES_H
 
29
#endif
 
30
 
 
31
//
 
32
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
 
33
// and not in <unistd.h>
 
34
//
 
35
#if defined(__FreeBSD__) && (__FreeBSD__ <= 3)
 
36
#  define BOOST_HAS_PTHREADS
 
37
#endif
 
38
 
 
39
//
 
40
// No wide character support in the BSD header files:
 
41
//
 
42
#define BOOST_NO_CWCHAR
 
43
 
 
44
//
 
45
// The BSD <ctype.h> has macros only, no functions:
 
46
//
 
47
#define BOOST_NO_CTYPE_FUNCTIONS
 
48
 
 
49
//
 
50
// thread API's not auto detected:
 
51
//
 
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
 
57
 
 
58
// boilerplate code:
 
59
#define BOOST_HAS_UNISTD_H
 
60
#include <boost/config/posix_features.hpp>
 
61
 
 
62
 
 
63
 
 
64
 
 
65