diff --git a/sim_timer.h b/sim_timer.h index ace58461..56896f92 100644 --- a/sim_timer.h +++ b/sim_timer.h @@ -33,6 +33,10 @@ #include +#if defined (__APPLE__) +#define HAVE_STRUCT_TIMESPEC 1 /* OSX defined the structure but doesn't tell us */ +#endif + #ifndef CLOCK_REALTIME #define CLOCK_REALTIME 1 #define NEED_CLOCK_GETTIME 1