OS X compatibility cleanups.

Reattach the licenses for the compat stuff to the source.
Only build/link the compat stuff when it's needed.
Rename compat/util.h so it's not confused with util.h.
Move all the platform specific defines inside compat/compat.h.
This commit is contained in:
Oliver Jowett 2015-09-07 12:58:49 +01:00
parent ae126d1009
commit 1c80d1b784
12 changed files with 114 additions and 82 deletions

View file

@ -1,5 +1,3 @@
#ifdef __APPLE__
#ifndef CLOCK_GETTIME_H
#define CLOCK_GETTIME_H
@ -23,4 +21,3 @@ static mach_timebase_info_data_t __clock_gettime_inf;
int clock_gettime(clockid_t clk_id, struct timespec *tp);
#endif // CLOCK_GETTIME_H
#endif // __APPLE__