summaryrefslogtreecommitdiff
path: root/src/libbiguint
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbiguint')
-rw-r--r--src/libbiguint/bu_addc.c2
-rw-r--r--src/libbiguint/bu_copy.c2
-rw-r--r--src/libbiguint/bu_scan.c2
-rw-r--r--src/libbiguint/bu_subc.c2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/libbiguint/bu_addc.c b/src/libbiguint/bu_addc.c
index 0a57531..cccc7a8 100644
--- a/src/libbiguint/bu_addc.c
+++ b/src/libbiguint/bu_addc.c
@@ -1,7 +1,9 @@
/* ISC license. */
/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE
+#endif
#include <errno.h>
#include <skalibs/uint32.h>
diff --git a/src/libbiguint/bu_copy.c b/src/libbiguint/bu_copy.c
index 1358aca..aff6e51 100644
--- a/src/libbiguint/bu_copy.c
+++ b/src/libbiguint/bu_copy.c
@@ -1,7 +1,9 @@
/* ISC license. */
/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE
+#endif
#include <errno.h>
#include <skalibs/uint32.h>
diff --git a/src/libbiguint/bu_scan.c b/src/libbiguint/bu_scan.c
index a34ed99..42d4530 100644
--- a/src/libbiguint/bu_scan.c
+++ b/src/libbiguint/bu_scan.c
@@ -1,7 +1,9 @@
/* ISC license. */
/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE
+#endif
#include <errno.h>
#include <skalibs/uint32.h>
diff --git a/src/libbiguint/bu_subc.c b/src/libbiguint/bu_subc.c
index c26adca..a5d0037 100644
--- a/src/libbiguint/bu_subc.c
+++ b/src/libbiguint/bu_subc.c
@@ -1,7 +1,9 @@
/* ISC license. */
/* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE
+#endif
#include <errno.h>
#include <skalibs/uint32.h>