summaryrefslogtreecommitdiff
path: root/src/libstddjb/time_from_tai.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/time_from_tai.c')
-rw-r--r--src/libstddjb/time_from_tai.c5
1 files changed, 5 insertions, 0 deletions
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>