summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 11:35:25 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 11:35:25 +0000
commit7f80651fe6a86d4d158cb84a4974bfb788737802 (patch)
tree551c3c7ce56fd521cc3307f1c8d48fae82530016
parent5b78f2cac220cdfce59ea511471676d98c1095e0 (diff)
downloads6-dns-7f80651fe6a86d4d158cb84a4974bfb788737802.tar.xz
OMG OpenBSD you suck.
-rw-r--r--src/libs6dns/s6dns_debug_dumpdt_pre_send.c5
-rw-r--r--src/libs6dns/s6dns_message_parse_init.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libs6dns/s6dns_debug_dumpdt_pre_send.c b/src/libs6dns/s6dns_debug_dumpdt_pre_send.c
index df8131d..998eff8 100644
--- a/src/libs6dns/s6dns_debug_dumpdt_pre_send.c
+++ b/src/libs6dns/s6dns_debug_dumpdt_pre_send.c
@@ -1,5 +1,10 @@
/* ISC license */
+/* For EOVERFLOW in OpenBSD */
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
+
#include <errno.h>
#include <skalibs/uint16.h>
#include <skalibs/fmtscan.h>
diff --git a/src/libs6dns/s6dns_message_parse_init.c b/src/libs6dns/s6dns_message_parse_init.c
index 3b4efc5..fe38e68 100644
--- a/src/libs6dns/s6dns_message_parse_init.c
+++ b/src/libs6dns/s6dns_message_parse_init.c
@@ -1,6 +1,7 @@
/* ISC license. */
#include <errno.h>
+#include <skalibs/error.h>
#include <s6-dns/s6dns-message.h>
int s6dns_message_parse_init (s6dns_message_header_t *h, s6dns_message_counts_t *counts, char const *packet, unsigned int packetlen, unsigned int *pos)