diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-02 14:11:43 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-11-11 13:33:10 +0000 |
commit | ca31500eb9fcb6475d7a2ddc05a03a4457ae22da (patch) | |
tree | 908efe8741c110cedffbdfa3cc1b2f5858af96ff | |
parent | 7610e50fd05212bbd9f4f8e4020c5c1d2964be32 (diff) |
clock_gettime.c: Use __APPLE__ instead of __MACH__
Hurd also defines __MACH__, but it does not have mach_absolute_time. Use
the more strict __APPLE__ instead.
Has also been sent upstream: https://github.com/libcheck/check/pull/65
-rw-r--r-- | libs/gst/check/libcheck/clock_gettime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gst/check/libcheck/clock_gettime.c b/libs/gst/check/libcheck/clock_gettime.c index 0baa1f5c70..cc27e73835 100644 --- a/libs/gst/check/libcheck/clock_gettime.c +++ b/libs/gst/check/libcheck/clock_gettime.c @@ -1,6 +1,6 @@ #include "libcompat.h" -#ifdef __MACH__ +#ifdef __APPLE__ #include <mach/clock.h> #include <mach/mach.h> #include <mach/mach_time.h> @@ -15,7 +15,7 @@ int clock_gettime (clockid_t clk_id CK_ATTRIBUTE_UNUSED, struct timespec *ts) { -#ifdef __MACH__ +#ifdef __APPLE__ /* OS X does not have clock_gettime, use mach_absolute_time */ static mach_timebase_info_data_t sTimebaseInfo; |