summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-10-19 17:33:10 -0700
committer Ian Rogers <irogers@google.com> 2012-10-19 17:33:10 -0700
commit27913a2a409f0489f7360704f54fb23dfbc7e3a5 (patch)
tree61d57be38ba4c84c54ce08e9df1e4ec160ef3f2c /src
parent30de32dec8dba21f7fec117b779c2b4e6bb4e4e6 (diff)
Fix for Mac build.
Fake CLOCK_REALTIME. Change-Id: I82550dec0d67a4d434ff035f8a922c8c5d6e56ca
Diffstat (limited to 'src')
-rw-r--r--src/mutex.cc2
1 files changed, 2 insertions, 0 deletions
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_)