diff options
-rw-r--r-- | src/libstddjb/tai_u64.c | 5 | ||||
-rw-r--r-- | src/libstddjb/time_from_tai.c | 5 | ||||
-rw-r--r-- | src/libstddjb/time_from_tai_relative.c | 5 | ||||
-rw-r--r-- | src/libstddjb/time_sysclock_from_tai.c | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/src/libstddjb/tai_u64.c b/src/libstddjb/tai_u64.c index a26d907..9132ff3 100644 --- a/src/libstddjb/tai_u64.c +++ b/src/libstddjb/tai_u64.c @@ -1,5 +1,10 @@ /* ISC license. */ +/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include <errno.h> #include <skalibs/uint64.h> #include <skalibs/tai.h> diff --git a/src/libstddjb/time_from_tai.c b/src/libstddjb/time_from_tai.c index e03b8c5..cdf1357 100644 --- a/src/libstddjb/time_from_tai.c +++ b/src/libstddjb/time_from_tai.c @@ -1,5 +1,10 @@ /* ISC license. */ +/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include <sys/types.h> #include <errno.h> #include <skalibs/sysdeps.h> diff --git a/src/libstddjb/time_from_tai_relative.c b/src/libstddjb/time_from_tai_relative.c index f5233fe..52e8c2a 100644 --- a/src/libstddjb/time_from_tai_relative.c +++ b/src/libstddjb/time_from_tai_relative.c @@ -1,5 +1,10 @@ /* ISC license. */ +/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include <sys/types.h> #include <errno.h> #include <skalibs/sysdeps.h> diff --git a/src/libstddjb/time_sysclock_from_tai.c b/src/libstddjb/time_sysclock_from_tai.c index c16dbe2..4faa70a 100644 --- a/src/libstddjb/time_sysclock_from_tai.c +++ b/src/libstddjb/time_sysclock_from_tai.c @@ -1,5 +1,10 @@ /* ISC license. */ +/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + #include <sys/types.h> #include <errno.h> #include <skalibs/sysdeps.h> |