From 7f80651fe6a86d4d158cb84a4974bfb788737802 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 10 Dec 2014 11:35:25 +0000 Subject: OMG OpenBSD you suck. --- src/libs6dns/s6dns_debug_dumpdt_pre_send.c | 5 +++++ src/libs6dns/s6dns_message_parse_init.c | 1 + 2 files changed, 6 insertions(+) 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 #include #include 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 +#include #include int s6dns_message_parse_init (s6dns_message_header_t *h, s6dns_message_counts_t *counts, char const *packet, unsigned int packetlen, unsigned int *pos) -- cgit v1.2.3