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_NANOSLEEP_H
#define CLOCK_NANOSLEEP_H
@ -24,4 +22,3 @@ int clock_nanosleep (clockid_t id, int flags, const struct timespec *ts,
struct timespec *ots);
#endif //CLOCK_NANOSLEEP_H
#endif // __APPLE__