commit 157ecd01d6cc4598ce4b0ec9bd477abbbf41d6c5
parent 1c032ec5855551c44b88f94fc35fa87db4279f0a
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Fri, 9 Jan 2015 01:08:07 +0000
Everybody loves OpenBSD and its _BSD_SOURCE-guarded EOVERFLOW
Diffstat:
4 files changed, 20 insertions(+), 0 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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>