3 //=============================================================================
9 * $Id: os_time.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 #ifndef ACE_OS_INCLUDE_SYS_OS_TIME_H
17 #define ACE_OS_INCLUDE_SYS_OS_TIME_H
19 #include /**/ "ace/pre.h"
21 #include "ace/config-lite.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #include "ace/os_include/sys/os_types.h"
29 #if !defined (ACE_LACKS_SYS_TIME_H)
30 # include /**/ <sys/time.h>
31 #endif /* !ACE_LACKS_SYS_TIME_H */
33 #if defined (ACE_VXWORKS) && (ACE_VXWORKS == 0x620)
34 # include /**/ <time.h> // VxWorks 6.2 defined timeval in time.h
37 // Place all additions (especially function declarations) within extern "C" {}
41 #endif /* __cplusplus */
43 #if defined (ACE_HAS_SVR4_GETTIMEOFDAY)
45 int gettimeofday (struct timeval
*tp
, void * = 0);
47 int gettimeofday (struct timeval
*tp
);
49 #elif defined (ACE_HAS_OSF1_GETTIMEOFDAY)
50 int gettimeofday (struct timeval
*tp
, struct timezone
* = 0);
51 #elif defined (ACE_HAS_VOIDPTR_GETTIMEOFDAY)
52 # define ACE_HAS_SVR4_GETTIMEOFDAY
53 #endif /* ACE_HAS_SVR4_GETTIMEOFDAY */
57 #endif /* __cplusplus */
59 #include /**/ "ace/post.h"
60 #endif /* ACE_OS_INCLUDE_SYS_OS_TIME_H */