add clock_gettime for macos 10.11 and earlier

This commit is contained in:
Brent Cook
2018-03-22 20:50:24 -05:00
parent 78600e9bec
commit 987aa6a084
5 changed files with 47 additions and 4 deletions

View File

@@ -13,10 +13,6 @@ int gettimeofday(struct timeval *tp, void *tzp);
#include_next <sys/time.h>
#endif
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef timersub
#define timersub(tvp, uvp, vvp) \
do { \