mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 19:57:36 +00:00
TIMER: Properly define the timespec structure when building with newer MinGW.
From Dave Bryan.
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
|
||||
/* Pick up a struct timespec definition if it is available */
|
||||
#include <time.h>
|
||||
#if defined(__struct_timespec_defined)
|
||||
#define _TIMESPEC_DEFINED
|
||||
#endif
|
||||
#if defined(SIM_ASYNCH_IO) || defined(USE_READER_THREAD)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user