summaryrefslogtreecommitdiff
path: root/ACE/ace/config-linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/config-linux.h')
-rw-r--r--ACE/ace/config-linux.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/ace/config-linux.h b/ACE/ace/config-linux.h
index ee3ca24eeeb..60101909e1e 100644
--- a/ACE/ace/config-linux.h
+++ b/ACE/ace/config-linux.h
@@ -29,6 +29,16 @@
// ... and the final standard even!
#define ACE_HAS_PTHREADS_STD
+// On linux this is part of pthreads
+# if (defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L)
+# if !defined (ACE_HAS_CLOCK_GETTIME)
+# if !defined(__PGI)
+# define ACE_HAS_CLOCK_GETTIME
+# endif /* __PGI */
+# define ACE_HAS_CLOCK_SETTIME
+# endif /* !ACE_HAS_CLOCK_GETTIME */
+# endif /* _POSIX_C_SOURCE >= 199309L */
+
#if !defined (ACE_HAS_PTHREADS_UNIX98_EXT)
# define ACE_LACKS_RWLOCK_T
#else
@@ -56,6 +66,10 @@
#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
#endif
+#else
+// AIO support pulls in the rt library, which pulls in the pthread
+// library. Disable AIO in single-threaded builds.
+# undef ACE_HAS_AIO_CALLS
#endif /* ACE_MT_SAFE */
#include /**/ "ace/post.h"