Browse Source

Merge remote-tracking branch 'origin/maint-0.2.8' into maint-0.2.8

Nick Mathewson 7 years ago
parent
commit
9c899dad31
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/common/compat_pthreads.c

+ 5 - 0
src/common/compat_pthreads.c

@@ -21,6 +21,11 @@
 #include "torlog.h"
 #include "util.h"
 
+#ifdef __APPLE__
+#undef CLOCK_MONOTONIC
+#undef HAVE_CLOCK_GETTIME
+#endif
+
 /** Wraps a void (*)(void*) function and its argument so we can
  * invoke them in a way pthreads would expect.
  */