TIMER: Properly define the timespec structure when building with newer MinGW.
From Dave Bryan.
This commit is contained in:
parent
32440a4138
commit
80595a532f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue