aboutsummaryrefslogtreecommitdiff
path: root/tests/test_speed.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_speed.c')
-rw-r--r--tests/test_speed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_speed.c b/tests/test_speed.c
index 56f2e5abc6c7..51476c94940b 100644
--- a/tests/test_speed.c
+++ b/tests/test_speed.c
@@ -44,7 +44,7 @@ get_ticks (void)
{
double res;
-#ifdef __APPLE__
+#if defined(__APPLE__) && defined(HAVE_MACH_MACH_TIME_H)
res = mach_absolute_time () / 1000000000.;
#else
struct timespec ts;