Fix to allows builds without SIM_ASYNCH_IO defined to work on OSX

This commit is contained in:
Mark Pizzolato 2013-01-17 09:54:55 -08:00
parent 99eb870891
commit a774f05633

View file

@ -399,7 +399,7 @@ if (tim > SIM_IDLE_MAX)
tim = 0; tim = 0;
return tim; return tim;
} }
#if !defined(_POSIX_SOURCE) && defined(SIM_ASYNCH_IO) #if !defined(_POSIX_SOURCE)
#ifdef NEED_CLOCK_GETTIME #ifdef NEED_CLOCK_GETTIME
typedef int clockid_t; typedef int clockid_t;
int clock_gettime(clockid_t clk_id, struct timespec *tp) int clock_gettime(clockid_t clk_id, struct timespec *tp)