fix compilation on OpenBSD
This commit is contained in:
parent
dfc253bebf
commit
94706763e5
5 changed files with 26 additions and 7 deletions
compat
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue