Fixed compile error on OS X timers

This commit is contained in:
Snaipe 2015-03-17 17:50:01 +01:00
parent 098eabb7e7
commit 73eae59b05

View file

@ -40,7 +40,7 @@ int gettime_compat(struct timespec_compat *ts) {
int res = clock_get_time(cclock, &mts);
mach_port_deallocate(mach_task_self(), cclock);
*ts = (struct timespec_compat) { mts->tv_sec, mts->tv_nsec };
*ts = (struct timespec_compat) { mts.tv_sec, mts.tv_nsec };
return res > 0 ? -1 : 0;
#elif defined(_WIN32) || defined(__CYGWIN__)
LARGE_INTEGER freq, count;