From e349c58ba9cd2b544e1392f7e61f30e03192a4cd Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 13 Jul 2006 06:31:10 +0000 Subject: [PATCH] Fix compile for systems that use pthreads but don't define UNIX and don't have clockid_t defined. If necessary, this can be redone in a more general way using configure.ac. --- stepmania/src/arch/Threads/Threads_Pthreads.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/arch/Threads/Threads_Pthreads.cpp b/stepmania/src/arch/Threads/Threads_Pthreads.cpp index 77999e3b3b..6caea813fe 100644 --- a/stepmania/src/arch/Threads/Threads_Pthreads.cpp +++ b/stepmania/src/arch/Threads/Threads_Pthreads.cpp @@ -214,6 +214,9 @@ MutexImpl *MakeMutex( RageMutex *pParent ) #if defined(UNIX) #include #include "arch/ArchHooks/ArchHooks_Unix.h" +#else +typedef void *clockid_t; +static clockid_t CLOCK_REALTIME = NULL; #endif namespace {