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

@ -53,14 +53,6 @@
#include <stdarg.h>
#ifdef __linux__
#include <endian.h>
#endif
#ifdef __APPLE__
#include "compat/util.h"
#endif
static int verbose_device_search(char *s);
//