From 953a5e06415300bb6caf51518bcf750c82dcae42 Mon Sep 17 00:00:00 2001 From: Jon Williams Date: Thu, 31 Mar 2016 13:45:07 -0400 Subject: [PATCH] OpenBSD uses _CLOCKID_T_DEFINED_ instead of CLOCKID_T --- compat/clock_gettime/clock_gettime.h | 6 +++++- compat/clock_nanosleep/clock_nanosleep.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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