Add checks for clock_gettime() support in Makefile

This commit is contained in:
Gabriele Gristina
2017-12-26 14:09:30 +01:00
parent 4f8343b8b1
commit 43ce4f6135
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
#ifndef _TIMER_H
#define _TIMER_H
#if defined(__APPLE__)
#if defined(__APPLE__) && defined(MISSING_CLOCK_GETTIME)
#include <sys/time.h>
#include <mach/clock.h>
#include <mach/mach.h>