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.
This commit is contained in:
@@ -214,6 +214,9 @@ MutexImpl *MakeMutex( RageMutex *pParent )
|
|||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include "arch/ArchHooks/ArchHooks_Unix.h"
|
#include "arch/ArchHooks/ArchHooks_Unix.h"
|
||||||
|
#else
|
||||||
|
typedef void *clockid_t;
|
||||||
|
static clockid_t CLOCK_REALTIME = NULL;
|
||||||
#endif
|
#endif
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user