diff options
-rw-r--r-- | src/libs6dns/s6dns_debug_dumpdt_pre_send.c | 5 | ||||
-rw-r--r-- | src/libs6dns/s6dns_message_parse_init.c | 1 |
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) |