diff options
Diffstat (limited to 'ace/os_include/time.h')
-rw-r--r-- | ace/os_include/time.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/os_include/time.h b/ace/os_include/time.h index ca321498a0e..15e07f9679c 100644 --- a/ace/os_include/time.h +++ b/ace/os_include/time.h @@ -52,5 +52,17 @@ extern "C" char *strptime (const char *s, const char *fmt, struct tm *tp); #endif /* ACE_LACKS_STRPTIME_PROTOTYPE */ +#if defined (ACE_PSOS) && !defined (USER_INCLUDE_SYS_TIME_TM) +# if defined (ACE_PSOS_DIAB_PPC) + typedef struct timespec timespec_t; +# else /* ! defined (ACE_PSOS_DIAB_PPC) */ + typedef struct timespec + { + time_t tv_sec; // Seconds + long tv_nsec; // Nanoseconds + } timespec_t; +# endif /* defined (ACE_PSOS_DIAB_PPC) */ +#endif /* defined (ACE_PSOS) && !defined (USER_INCLUDE_SYS_TIME_TM) */ + #include "ace/post.h" #endif /* ACE_OS_INCLUDE_TIME_H */ |