mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +00:00
[Joseph Oswald]
Fix MACH timer header
This commit is contained in:
parent
ae1ef406fe
commit
85ca596560
@ -65,6 +65,9 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__MACH__)
|
||||||
|
#include <mach/clock.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Symbol to distinguish Nigel's Aqua port from a normal Darwin X11 build */
|
/* Symbol to distinguish Nigel's Aqua port from a normal Darwin X11 build */
|
||||||
/* (this sysdeps.h file is currently specific to the Mac OS X Aqua port) */
|
/* (this sysdeps.h file is currently specific to the Mac OS X Aqua port) */
|
||||||
@ -178,6 +181,8 @@ typedef char * caddr_t;
|
|||||||
/* Time data type for Time Manager emulation */
|
/* Time data type for Time Manager emulation */
|
||||||
#ifdef HAVE_CLOCK_GETTIME
|
#ifdef HAVE_CLOCK_GETTIME
|
||||||
typedef struct timespec tm_time_t;
|
typedef struct timespec tm_time_t;
|
||||||
|
#elif defined(__MACH__)
|
||||||
|
typedef mach_timespec_t tm_time_t;
|
||||||
#else
|
#else
|
||||||
typedef struct timeval tm_time_t;
|
typedef struct timeval tm_time_t;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user