Skip to content

Commit

Permalink
support for old macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Akagi201 committed Nov 11, 2016
1 parent b143f87 commit 02d70f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mach_gettime.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#define CLOCK_REALTIME CALENDAR_CLOCK
#define CLOCK_MONOTONIC SYSTEM_CLOCK

#if !defined(__DARWIN_C_LEVEL) || __DARWIN_C_LEVEL < 199309L
typedef int clockid_t;
#endif

/* the mach kernel uses struct mach_timespec, so struct timespec
is loaded from <sys/_types/_timespec.h> for compatability */
// struct timespec { time_t tv_sec; long tv_nsec; };
Expand Down

0 comments on commit 02d70f5

Please sign in to comment.