From 1b90bd41b7e96bdf2725c8539f6b016f8f15fc5b Mon Sep 17 00:00:00 2001 From: Christoph Moench-Tegeder Date: Mon, 11 Jan 2016 20:31:29 +0100 Subject: [PATCH] include netinet/in.h in resolver On some platforms (notably FreeBSD) netinet/in.h is required for the struct in_addr type and IPPROTO_* constants. As this header and both required definitions are documented in IEEE Std 1003.1, this should be safe on all systems. --- loudmouth/lm-blocking-resolver.c | 1 + loudmouth/lm-resolver.c | 1 + 2 files changed, 2 insertions(+) diff --git a/loudmouth/lm-blocking-resolver.c b/loudmouth/lm-blocking-resolver.c index 8d0939c..570567b 100644 --- a/loudmouth/lm-blocking-resolver.c +++ b/loudmouth/lm-blocking-resolver.c @@ -29,6 +29,7 @@ #include #endif +#include #include #include diff --git a/loudmouth/lm-resolver.c b/loudmouth/lm-resolver.c index bf5cd82..7a7dbfc 100644 --- a/loudmouth/lm-resolver.c +++ b/loudmouth/lm-resolver.c @@ -27,6 +27,7 @@ #include #endif +#include #include #include