changed MISSING_{NANOSLEEP,GETTIME} to use -D to fix compilation on OS X

This commit is contained in:
Jon Williams 2016-03-31 13:38:34 -04:00
parent 94706763e5
commit e0c15ea7e8
3 changed files with 7 additions and 14 deletions

View file

@ -7,11 +7,6 @@
#if defined(__APPLE__)
/* implementations of clock_gettime, clock_nanosleep */
#define MISSING_NANOSLEEP
#define MISSING_GETTIME
/*
* Mach endian conversion
*/
@ -29,16 +24,12 @@
#endif
#if defined(__OpenBSD__)
#define MISSING_NANOSLEEP
#endif
#ifdef MISSING_NANOSLEEP
#include "clock_nanosleep/clock_nanosleep.h"
#endif
#ifdef MISSING_GETTIME
#include "clock_nanosleep/clock_gettime.h"
#include "clock_gettime/clock_gettime.h"
#endif
#endif //COMPAT_UTIL_H