fix compilation on OpenBSD

This commit is contained in:
Jon Williams 2016-03-31 13:25:32 -04:00
parent dfc253bebf
commit 94706763e5
5 changed files with 26 additions and 7 deletions
compat

View file

@ -9,8 +9,8 @@
/* implementations of clock_gettime, clock_nanosleep */
#include "clock_gettime/clock_gettime.h"
#include "clock_nanosleep/clock_nanosleep.h"
#define MISSING_NANOSLEEP
#define MISSING_GETTIME
/*
* Mach endian conversion
@ -29,4 +29,16 @@
#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"
#endif
#endif //COMPAT_UTIL_H