diff --git a/compat/clock_gettime/clock_gettime.h b/compat/clock_gettime/clock_gettime.h index 978f522..ef0510c 100644 --- a/compat/clock_gettime/clock_gettime.h +++ b/compat/clock_gettime/clock_gettime.h @@ -1,7 +1,11 @@ #ifndef CLOCK_GETTIME_H #define CLOCK_GETTIME_H -#include +#include // Apple-only, but this isn't inclued on other BSDs + +#ifdef _CLOCKID_T_DEFINED_ +#define CLOCKID_T +#endif #ifndef CLOCKID_T #define CLOCKID_T diff --git a/compat/clock_nanosleep/clock_nanosleep.h b/compat/clock_nanosleep/clock_nanosleep.h index ba0b247..9a8da5d 100644 --- a/compat/clock_nanosleep/clock_nanosleep.h +++ b/compat/clock_nanosleep/clock_nanosleep.h @@ -1,6 +1,10 @@ #ifndef CLOCK_NANOSLEEP_H #define CLOCK_NANOSLEEP_H +#ifdef _CLOCKID_T_DEFINED_ +#define CLOCKID_T +#endif + #ifndef CLOCKID_T #define CLOCKID_T typedef enum