From a3c46990f617c803e552d71d5e08429a600cc993 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Mon, 22 Nov 2010 02:42:53 +0000 Subject: Revert to gettimeofday on posix systems. I give up. Temporary fix for OSX in JitIL.cpp This revision should build on OSX again. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6457 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Source/Core/Common/Src/Thread.cpp') diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp index aeee52ca22..76de6cfbd3 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -493,15 +493,9 @@ namespace Common if (timeout != INFINITE) { memset(&wait, 0, sizeof(wait)); -#ifdef USE_GETTIMEOFDAY struct timeval now; gettimeofday(&now, NULL); wait.tv_nsec = (now.tv_usec + (timeout % 1000)) * 1000; -#else - struct timespec now; - clock_gettime(CLOCK_MONOTONIC_RAW, &now); - wait.tv_nsec = now.tv_nsec + (timeout % 1000) * 1000000; -#endif wait.tv_sec = now.tv_sec + (timeout / 1000); } -- cgit v1.2.3