From 808ed4c03673e43706e309d01c82f5079671476b Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Fri, 25 Oct 2013 15:27:05 -0500 Subject: [PATCH] MinGW gives us clockid_t --- src/arch/Threads/Threads_Pthreads.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/Threads/Threads_Pthreads.cpp b/src/arch/Threads/Threads_Pthreads.cpp index 9181759c0c..b382b5d864 100644 --- a/src/arch/Threads/Threads_Pthreads.cpp +++ b/src/arch/Threads/Threads_Pthreads.cpp @@ -208,11 +208,11 @@ MutexImpl *MakeMutex( RageMutex *pParent ) #if defined(UNIX) #include #include "arch/ArchHooks/ArchHooks_Unix.h" -#else +#elseif defined(MACOSX) typedef int clockid_t; static const clockid_t CLOCK_REALTIME = 0; static const clockid_t CLOCK_MONOTONIC = 1; -#endif +#endif // On MinGW clockid_t is defined in pthread.h namespace { typedef int (* CONDATTR_SET_CLOCK)( pthread_condattr_t *attr, clockid_t clock_id );