diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-18 15:47:03 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-18 15:47:03 +0000 |
commit | 1200b4a7122162411d15d99f2e1167da44b58ecc (patch) | |
tree | f9b911b0bf335f8409aaa75179a48265352d4c26 /ace | |
parent | 0d9796fe3c2d262a0296443eb62ee0fd87e91e5c (diff) | |
download | ATCD-1200b4a7122162411d15d99f2e1167da44b58ecc.tar.gz |
ChangeLogTag:Mon Aug 18 10:41:05 1997 Carlos O'Ryan <coryan@swarm.cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.h | 4 | ||||
-rw-r--r-- | ace/README | 1 | ||||
-rw-r--r-- | ace/config-freebsd-pthread.h | 6 | ||||
-rw-r--r-- | ace/config-freebsd.h | 6 | ||||
-rw-r--r-- | ace/config-linux-lxpthreads.h | 4 | ||||
-rw-r--r-- | ace/config-linux-pthread.h | 4 | ||||
-rw-r--r-- | ace/config-linux.h | 4 |
7 files changed, 27 insertions, 2 deletions
@@ -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) |