[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / config-freebsd.h
blob3461bec8d8146c385641134d42162fe41d22ce7d
1 /* -*- C++ -*- */
2 // $Id: config-freebsd.h 80826 2008-03-04 14:51:23Z wotte $
4 // The following configuration file is designed to work for FreeBSD
6 #ifndef ACE_CONFIG_H
7 #define ACE_CONFIG_H
8 #include /**/ "ace/pre.h"
10 #if !defined (ACE_MT_SAFE)
11 # define ACE_MT_SAFE 1
12 #endif
14 #if ACE_MT_SAFE
15 // Yes, we do have threads.
16 # define ACE_HAS_THREADS 1
17 #else
18 // Set to 0 since that's what config-posix.h checks for.
19 # define ACE_HAS_THREADS 0
20 #endif /* ACE_MT_SAFE */
22 #include "ace/config-posix.h"
24 #include <osreldate.h>
25 // Make sure we source in the OS version.
27 #if ! defined (__ACE_INLINE__)
28 #define __ACE_INLINE__
29 #endif /* ! __ACE_INLINE__ */
31 #if (__FreeBSD_version < 220000)
32 #if defined (ACE_HAS_THREADS)
33 #error Threads are not supported.
34 #endif /* ACE_HAS_THREADS */
35 #endif /* __FreeBSD_version < 220000 */
37 #if defined (__GNUG__)
38 # include "ace/config-g++-common.h"
39 #endif /* __GNUG__ */
41 #if defined (ACE_HAS_PENTIUM)
42 # undef ACE_HAS_PENTIUM
43 #endif /* ACE_HAS_PENTIUM */
45 // Platform specific directives
46 // gcc defines __FreeBSD__ automatically for us.
47 #ifdef ACE_HAS_THREADS
48 #if !defined (_THREAD_SAFE)
49 #define _THREAD_SAFE
50 #endif /* _THREAD_SAFE */
51 #endif
53 #define ACE_HAS_GPERF
55 #if (__FreeBSD_version < 420000)
56 #define ACE_LACKS_GETPGID
57 #define ACE_LACKS_SETPGID
58 #define ACE_LACKS_SETREGID
59 #define ACE_LACKS_SETREUID
60 #define ACE_LACKS_PTHREAD_CANCEL
61 #endif /* __FreeBSD_version < 420000 */
63 #define ACE_HAS_ALT_CUSERID
64 #define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
65 #define ACE_HAS_SIG_MACROS
66 // Optimize ACE_Handle_Set for select().
67 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
68 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
69 #define ACE_HAS_CHARPTR_DL
71 #if (__FreeBSD_version < 400000)
72 #define ACE_LACKS_SIGSET
73 #define ACE_LACKS_RWLOCK_T
74 #define ACE_LACKS_READDIR_R
75 #define ACE_LACKS_SETSCHED
76 #define ACE_LACKS_PTHREAD_THR_SIGSETMASK
77 #define ACE_LACKS_UCONTEXT_H
78 #define ACE_LACKS_RAND_REENTRANT_FUNCTIONS
79 #endif
81 #define ACE_NEEDS_SCHED_H
83 #if (__FreeBSD_version < 400000)
84 enum schedparam_policy {
85 SCHED_RR,
86 SCHED_IO,
87 SCHED_FIFO,
88 SCHED_OTHER
90 #endif
92 // Use of <malloc.h> is deprecated.
93 #define ACE_LACKS_MALLOC_H
96 // This won't be necessary after it is fixed in the system include headers.
97 extern "C" { char * cuserid (char *s); }
99 // Platform supports POSIX timers via struct timespec.
100 #define ACE_HAS_POSIX_TIME
101 #define ACE_HAS_UALARM
103 // Platform defines struct timespec but not timespec_t
104 #define ACE_LACKS_TIMESPEC_T
106 #if (__FreeBSD_version < 501000)
107 #define ACE_LACKS_STDINT_H
108 #endif
110 #define ACE_HAS_SYSCTL
111 #define ACE_LACKS_STRRECVFD
113 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
114 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
116 // Platform supports System V IPC (most versions of UNIX, but not Win32)
117 #define ACE_HAS_SYSV_IPC
119 // Compiler/platform contains the <sys/syscall.h> file.
120 #define ACE_HAS_SYS_SYSCALL_H
122 #if (__FreeBSD_version >= 220000)
123 #define ACE_HAS_VASPRINTF
124 #endif
126 #if (__FreeBSD_version >= 300000)
127 #define ACE_HAS_SIGINFO_T
128 #endif /* __FreeBSD_version >= 300000 */
130 #if (__FreeBSD_version >= 320000)
131 #define ACE_HAS_REENTRANT_FUNCTIONS
132 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
133 #define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
134 #endif /* __FreeBSD_version >= 320000 */
136 #if (__FreeBSD_version >= 440000)
137 #define ACE_HAS_GETPROGNAME
138 #define ACE_HAS_SETPROGNAME
139 #endif
141 #if (__FreeBSD_version < 501000)
142 #define ACE_LACKS_PWD_REENTRANT_FUNCTIONS
143 #endif
145 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
146 #define ACE_LACKS_SIGINFO_H
147 #define ACE_LACKS_LOG2
148 #define ACE_LACKS_SI_ADDR
150 // Compiler/platform supports SVR4 signal typedef
151 #define ACE_HAS_SVR4_SIGNAL_T
153 // Compiler/platform supports alloca().
154 // Although ACE does have alloca() on this compiler/platform combination, it is
155 // disabled by default since it can be dangerous. Uncomment the following line
156 // if you ACE to use it.
157 //#define ACE_HAS_ALLOCA
159 // Compiler/platform supports SVR4 dynamic linking semantics..
160 #define ACE_HAS_SVR4_DYNAMIC_LINKING
162 // Compiler/platform correctly calls init()/fini() for shared libraries.
163 #define ACE_HAS_AUTOMATIC_INIT_FINI
165 // Explicit dynamic linking permits "lazy" symbol resolution
166 #define ACE_HAS_RTLD_LAZY_V
168 // platform supports POSIX O_NONBLOCK semantics
169 #define ACE_HAS_POSIX_NONBLOCK
171 // platform supports IP multicast
172 #define ACE_HAS_IP_MULTICAST
174 // Lacks perfect filtering, must bind group address.
175 #if !defined ACE_LACKS_PERFECT_MULTICAST_FILTERING
176 # define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
177 #endif /* ACE_LACKS_PERFECT_MULTICAST_FILTERING */
179 // Compiler/platform has <alloca.h>
180 //#define ACE_HAS_ALLOCA_H
182 // Compiler/platform has the getrusage() system call.
183 #define ACE_HAS_GETRUSAGE
185 // Compiler/platform defines the sig_atomic_t typedef.
186 #define ACE_HAS_SIG_ATOMIC_T
188 // Compiler/platform supports sys_siglist array.
189 // *** This refers to (_sys_siglist) instead of (sys_siglist)
190 // #define ACE_HAS_SYS_SIGLIST
192 // Compiler/platform defines a union semun for SysV shared memory.
193 #define ACE_HAS_SEMUN
195 // Compiler supports the ssize_t typedef.
196 #define ACE_HAS_SSIZE_T
198 // Compiler/platform supports strerror ().
199 #define ACE_HAS_STRERROR
201 // Compiler/platform provides the sockio.h file.
202 #define ACE_HAS_SYS_SOCKIO_H
204 // Defines the page size of the system.
205 #define ACE_PAGE_SIZE 4096
207 // Platform provides <sys/filio.h> header.
208 #define ACE_HAS_SYS_FILIO_H
210 // Platform/compiler supports timezone * as second parameter to gettimeofday().
211 #define ACE_HAS_TIMEZONE_GETTIMEOFDAY
213 #define ACE_HAS_MSG
214 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
216 #if (__FreeBSD_version < 500100)
217 # define ACE_HAS_NONCONST_MSGSND
218 #endif
220 // Thread specific settings
221 // Yes, we do have threads.
222 #ifdef ACE_HAS_THREADS
223 #if !defined (ACE_MT_SAFE)
224 # define ACE_MT_SAFE 1
225 #endif /* ! ACE_MT_SAFE */
226 #endif /* ACE_HAS_THREADS */
228 #define ACE_LACKS_THREAD_PROCESS_SCOPING
229 #define ACE_LACKS_CONDATTR_PSHARED
230 #define ACE_LACKS_MUTEXATTR_PSHARED
231 #define ACE_HAS_THREAD_SPECIFIC_STORAGE
232 #define ACE_HAS_DIRENT
234 #define ACE_HAS_SIGWAIT
236 // Platform has POSIX terminal interface.
237 #define ACE_HAS_TERMIOS
239 #if (__FreeBSD_version > 400000)
240 #define ACE_HAS_UCONTEXT_T
241 #define ACE_HAS_SOCKLEN_T
242 #define ACE_HAS_GETIFADDRS
243 #define ACE_HAS_PTHREADS_UNIX98_EXT
244 #endif
246 // Note, on FreeBSD 5, POSIX aio is now an optional kernel module which
247 // must be loaded.
248 // Read the aio(4) man page for what to do, otherwise any aio_* call
249 // will coredump.
251 // By default use Proactor which does not use POSIX Real-time Signals.
252 #ifdef ACE_HAS_AIO_CALLS
253 # ifndef ACE_POSIX_AIOCB_PROACTOR
254 # define ACE_POSIX_AIOCB_PROACTOR
255 # endif /* ACE_POSIX_AIOCB_PROACTOR */
256 #endif /* ACE_HAS_AIO_CALLS */
258 #define ACE_LACKS_STROPTS_H
260 // Needed when ACE_HAS_WCHAR is defined.
261 #define ACE_LACKS_WCSNICMP
262 #define ACE_LACKS_WCSICMP
263 #define ACE_LACKS_WCSDUP
264 #define ACE_LACKS_ITOW
265 #define ACE_HAS_3_PARAM_WCSTOK
266 #define ACE_HAS_3_PARAM_READDIR_R
268 #if (__FreeBSD_version >= 501000)
269 # define ACE_HAS_PTHREAD_SETSTACK
270 #endif
272 #if (__FreeBSD_version < 700007)
273 # define ACE_HAS_SIGVAL_SIGVAL_INT
274 # define ACE_HAS_BROKEN_SIGEVENT_STRUCT
275 #endif
277 #if (__FreeBSD_version >= 700028)
278 # define ACE_HAS_SCTP
279 # define ACE_HAS_LKSCTP
280 #endif
282 #include /**/ "ace/post.h"
284 #endif /* ACE_CONFIG_H */