summaryrefslogtreecommitdiff
path: root/ace/config-sunos5.6.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 22:35:25 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-21 22:35:25 +0000
commit422229549460a2d698349de7d2e070496a4ddfc1 (patch)
tree1fc0abb0c8462159c5356ab36302105eb1a03ff8 /ace/config-sunos5.6.h
parent59a813a02ffcf2eef0c769e24807602d89234a0a (diff)
downloadATCD-422229549460a2d698349de7d2e070496a4ddfc1.tar.gz
added support for POSIX 199506 extensions
Diffstat (limited to 'ace/config-sunos5.6.h')
-rw-r--r--ace/config-sunos5.6.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/ace/config-sunos5.6.h b/ace/config-sunos5.6.h
index 5939b0ab724..98a743b4a8d 100644
--- a/ace/config-sunos5.6.h
+++ b/ace/config-sunos5.6.h
@@ -18,7 +18,19 @@
# error unsupported compiler in ace/config-sunos5.6.h
#endif /* ! __GNUG__ && ! __KCC */
+#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
-#define ACE_THREAD_POSIX_SEM
+
#endif /* ACE_CONFIG_H */