From 80595a532fa747a9de2e47e6b97b3c577f4d6c46 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 23 Jan 2016 14:07:59 -0800 Subject: [PATCH] TIMER: Properly define the timespec structure when building with newer MinGW. From Dave Bryan. --- sim_timer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim_timer.h b/sim_timer.h index d2fcf63a..1e779154 100644 --- a/sim_timer.h +++ b/sim_timer.h @@ -33,6 +33,9 @@ /* Pick up a struct timespec definition if it is available */ #include +#if defined(__struct_timespec_defined) +#define _TIMESPEC_DEFINED +#endif #if defined(SIM_ASYNCH_IO) || defined(USE_READER_THREAD) #include #endif