From 1d490907ad1ecfd89c8beec2921be5840a86ad65 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 2 Nov 2011 14:54:00 -0700 Subject: [PATCH] Fix for OSX clean compile --- sim_timer.h | 4 ++++ 1 file changed, 4 insertions(+) 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