summaryrefslogtreecommitdiff
path: root/src/libstddjb/time_from_tai.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-01-09 01:08:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-01-09 01:08:07 +0000
commit157ecd01d6cc4598ce4b0ec9bd477abbbf41d6c5 (patch)
tree0cf300a206d3f66297e4b0ab0d986f489ecb921d /src/libstddjb/time_from_tai.c
parent1c032ec5855551c44b88f94fc35fa87db4279f0a (diff)
downloadskalibs-157ecd01d6cc4598ce4b0ec9bd477abbbf41d6c5.tar.xz
Everybody loves OpenBSD and its _BSD_SOURCE-guarded EOVERFLOW
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>