summaryrefslogtreecommitdiff
path: root/ace/config-sunos5.6.h
blob: 0f260e66578ecf9dbcc2e43727b5d2f2b6d8185e (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
/* -*- C++ -*- */
// $Id$

// The following configuration file is designed to work for SunOS 5.6
// platforms using the SunC++ 4.x or g++ compilers.

#if !defined (ACE_CONFIG_H)

// ACE_CONFIG_H is defined by one of the following #included headers.

// #include the SunOS 5.5 config file, then add SunOS 5.6 updates below.

#include "ace/config-sunos5.5.h"

#if (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199506L) || \
    defined (__EXTENSIONS__)
# undef  ACE_HAS_ONEARG_SIGWAIT
# define ACE_HAS_PTHREADS_1003_DOT_1C
# define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
// Hack 'cuz -DPOSIX_SOURCE=199506L and -DEXTENSIONS hides this.
# include <sys/types.h>
  extern "C" int madvise(caddr_t, size_t, int);
#endif /* _POSIX_C_SOURCE >= 199506L  ||  __EXTENSIONS__ */

#define ACE_THREAD_POSIX_SEM

// SunOS 5.6 does support sched_get_priority_{min,max}
#undef ACE_THR_PRI_FIFO_DEF

// SunOS 5.6 has AIO calls.
#define ACE_HAS_AIO_CALLS
#endif /* ACE_CONFIG_H */