Fix build when targeting Sierra.

Sierra now supports clock_gettime(), so fix some code that assumed
mach and HAVE_CLOCK_GETTIME where mutually exclusive.
This commit is contained in:
Alexei Svitkine 2017-08-08 23:19:39 -04:00
parent b5820d8059
commit 35ca220d90

View File

@ -32,7 +32,7 @@
#define CLOCK_REALTIME 0 #define CLOCK_REALTIME 0
#endif #endif
#if defined(__MACH__) #if !defined(HAVE_CLOCK_GETTIME) && defined(__MACH__)
#include <mach/mach.h> #include <mach/mach.h>
#include <mach/clock.h> #include <mach/clock.h>