blob: fdf6a7b2fd7b79bb872ada6ebca3a68d533bab1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* -*- C++ -*- */
// $Id$
#ifndef ACE_CONFIG_POSIX_H
#define ACE_CONFIG_POSIX_H
#include <unistd.h>
/* The following POSIX constants are defined after <unistd.h> is
* included. They are documented in:
* http://www.opengroup.org/onlinepubs/007904975/basedefs/unistd.h.html
*/
#if defined(_POSIX_REALTIME_SIGNALS) && (_POSIX_REALTIME_SIGNALS-0 != -1 )
# if !defined(ACE_HAS_POSIX_REALTIME_SIGNALS)
# define ACE_HAS_POSIX_REALTIME_SIGNALS
# endif /* ACE_HAS_POSIX_REALTIME_SIGNALS */
#endif /* _POSIX_REALTIME_SIGNALS */
#if defined(_POSIX_ASYNCHRONOUS_IO) && (_POSIX_ASYNCHRONOUS_IO-0 != -1 )
# if !defined(ACE_HAS_AIO_CALLS)
# define ACE_HAS_AIO_CALLS
# endif /* ACE_HAS_AIO_CALLS */
#endif /* _POSIX_ASYNCHRONOUS_IO */
#if defined(_POSIX_SEMAPHORES) && (_POSIX_SEMAPHORES-0 != -1 )
# if !defined(ACE_HAS_POSIX_SEM)
# define ACE_HAS_POSIX_SEM
# endif /* ACE_HAS_POSIX_SEM */
#endif /* ACE_HAS_POSIX_SEM */
#if defined(_POSIX_MESSAGE_PASSING) && (_POSIX_MESSAGE_PASSING-0 != -1 )
# if !defined(ACE_HAS_POSIX_MESSAGE_PASSING)
# define ACE_HAS_POSIX_MESSAGE_PASSING
# endif /* ACE_HAS_POSIX_MESSAGE_PASSING */
#endif /* _POSIX_MESSAGE_PASSING */
#if defined(_POSIX_SHARED_MEMORY_OBJECTS) && (_POSIX_SHARED_MEMORY_OBJECTS-0 != -1 )
# if !defined(ACE_HAS_SHM_OPEN)
# define ACE_HAS_SHM_OPEN
# endif /* ACE_HAS_SHM_OPEN */
#endif /* _POSIX_SHARED_MEMORY_OBJECTS */
// Allow the user to disable use of threads by setting ACE_HAS_THREADS to 0
// before including this file. The platform config (not macros) file can
// often detect that the compiler was invoked with or without threads support
// and set this accordingly.
#if defined (ACE_HAS_THREADS) && (ACE_HAS_THREADS == 0)
# undef ACE_HAS_THREADS
#else
# if defined(_POSIX_THREADS) && (_POSIX_THREADS-0 != -1 )
# if !defined(ACE_HAS_THREADS)
# define ACE_HAS_THREADS
# endif /* ACE_HAS_THREADS */
# if !defined(ACE_HAS_PTHREADS)
# define ACE_HAS_PTHREADS
# endif /* ACE_HAS_PTHREADS */
# if !defined(ACE_HAS_PTHREADS_STD)
# define ACE_HAS_PTHREADS_STD
# endif /* ACE_HAS_PTHREADS_STD */
# endif /* _POSIX_THREADS */
#endif /* ACE_HAS_THREADS */
#if defined(_POSIX_MESSAGE_PASSING) && (_POSIX_MESSAGE_PASSING-0 != -1 )
# if !defined(ACE_HAS_POSIX_MESSAGE_PASSING)
# define ACE_HAS_POSIX_MESSAGE_PASSING
# endif /* ACE_HAS_POSIX_MESSAGE_PASSING */
#endif /* _POSIX_MESSAGE_PASSING */
#if defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
# define ACE_HAS_SNPRINTF
#endif /* _XOPEN_SOURCE */
#endif /* ACE_CONFIG_POSIX_H */
|