summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/OS.h4
-rw-r--r--ace/README1
-rw-r--r--ace/config-freebsd-pthread.h6
-rw-r--r--ace/config-freebsd.h6
-rw-r--r--ace/config-linux-lxpthreads.h4
-rw-r--r--ace/config-linux-pthread.h4
-rw-r--r--ace/config-linux.h4
7 files changed, 27 insertions, 2 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 3148d2fa5b4..3e0dbd1c240 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -499,6 +499,10 @@ typedef struct timespec
#include /**/ <sys/timers.h>
#endif /* !ACE_HAS_POSIX_TIME */
+#if defined(ACE_LACKS_TIMESPEC_T)
+typedef struct timespec timespec_t;
+#endif /* ACE_LACKS_TIMESPEC_T */
+
#if !defined (ACE_HAS_CLOCK_GETTIME) && !defined (_CLOCKID_T)
typedef int clockid_t;
#if !defined (CLOCK_REALTIME)
diff --git a/ace/README b/ace/README
index 14d506c10b3..8e893c588e8 100644
--- a/ace/README
+++ b/ace/README
@@ -143,6 +143,7 @@ ACE_HAS_SVR4_DYNAMIC_LINKING Compiler/platform supports SVR4 dynamic linking se
ACE_HAS_SVR4_GETTIMEOFDAY Compiler/platform supports SVR4 gettimeofday() prototype
ACE_HAS_SVR4_SIGNAL_T Compiler/platform supports SVR4 signal typedef
ACE_HAS_SVR4_TIME Platform supports the SVR4 timestruc_t type. NOTE: This macro is obsolete, ACE only uses timespec_t.
+ACE_LACKS_TIMESPEC_T Platform does not define timepec_t as a typedef for struct timespec.
ACE_HAS_SVR4_TLI Compiler/platform supports SVR4 TLI (in particular, T_GETNAME stuff)...
ACE_HAS_SYSCALL_GETRUSAGE HP/UX has an undefined syscall for GETRUSAGE...
ACE_HAS_SYSCALL_H Compiler/platform contains the <sys/syscall.h> file.
diff --git a/ace/config-freebsd-pthread.h b/ace/config-freebsd-pthread.h
index 30714ee3d97..0b284626d03 100644
--- a/ace/config-freebsd-pthread.h
+++ b/ace/config-freebsd-pthread.h
@@ -35,8 +35,12 @@ enum schedparam_policy {
SCHED_OTHER
};
-// Platform supports POSIX timers via timestruct_t.
+// Platform supports POSIX timers via struct timespec.
#define ACE_HAS_POSIX_TIME
+
+// Platform defines struct timespec but not timespec_t
+#define ACE_LACKS_TIMESPEC_T
+
#define ACE_NEEDS_SYSTIME_H
#define ACE_LACKS_STRRECVFD
diff --git a/ace/config-freebsd.h b/ace/config-freebsd.h
index 1a6f0b1b24b..a9eae70dd4e 100644
--- a/ace/config-freebsd.h
+++ b/ace/config-freebsd.h
@@ -65,8 +65,12 @@ ange */
#endif /* defined FreeBSD_2_1 */
-// Platform supports POSIX timers via timestruct_t.
+// Platform supports POSIX timers via struct timespec.
#define ACE_HAS_POSIX_TIME
+
+// Platform defines struct timespec but not timespec_t
+#define ACE_LACKS_TIMESPEC_T
+
#define ACE_NEEDS_SYSTIME_H
#define ACE_LACKS_STRRECVFD
diff --git a/ace/config-linux-lxpthreads.h b/ace/config-linux-lxpthreads.h
index 41a7bf74519..2373a194360 100644
--- a/ace/config-linux-lxpthreads.h
+++ b/ace/config-linux-lxpthreads.h
@@ -49,6 +49,10 @@
#endif
#define ACE_HAS_POSIX_TIME
+
+// Platform defines struct timespec but not timespec_t
+#define ACE_LACKS_TIMESPEC_T
+
#define ACE_LACKS_STRRECVFD
// Platform supports System V IPC (most versions of UNIX, but not Win32)
diff --git a/ace/config-linux-pthread.h b/ace/config-linux-pthread.h
index c0bda80975e..e1db4eb3ce4 100644
--- a/ace/config-linux-pthread.h
+++ b/ace/config-linux-pthread.h
@@ -28,6 +28,10 @@
#endif
#define ACE_HAS_POSIX_TIME
+
+// Platform defines struct timespec but not timespec_t
+#define ACE_LACKS_TIMESPEC_T
+
#define ACE_LACKS_STRRECVFD
// ONLY define this if you have config'd multicast into a 2.x kernel.
diff --git a/ace/config-linux.h b/ace/config-linux.h
index b8ca70e7a49..54e7ed2c4fc 100644
--- a/ace/config-linux.h
+++ b/ace/config-linux.h
@@ -38,6 +38,10 @@
//#define ACE_LACKS_RECVMSG
#define ACE_HAS_POSIX_TIME
+
+// Platform defines struct timespec but not timespec_t
+#define ACE_LACKS_TIMESPEC_T
+
#define ACE_LACKS_STRRECVFD
// Platform supports System V IPC (most versions of UNIX, but not Win32)