TIMER: Properly define the timespec structure when building with newer MinGW.

From Dave Bryan.
This commit is contained in:
Mark Pizzolato 2016-01-23 14:07:59 -08:00
parent 32440a4138
commit 80595a532f

View file

@ -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