From 27913a2a409f0489f7360704f54fb23dfbc7e3a5 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Fri, 19 Oct 2012 17:33:10 -0700 Subject: Fix for Mac build. Fake CLOCK_REALTIME. Change-Id: I82550dec0d67a4d434ff035f8a922c8c5d6e56ca --- src/mutex.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mutex.cc b/src/mutex.cc index cbf115e925..ec0752ee96 100644 --- a/src/mutex.cc +++ b/src/mutex.cc @@ -29,6 +29,8 @@ #if defined(__APPLE__) #include "AvailabilityMacros.h" // For MAC_OS_X_VERSION_MAX_ALLOWED +// No clocks to specify on OS/X, fake value to pass to routines that require a clock. +#define CLOCK_REALTIME 0xEBADFOOD #endif #define CHECK_MUTEX_CALL(call, args) CHECK_PTHREAD_CALL(call, args, name_) -- cgit v1.2.3-59-g8ed1b