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.
--- a/loudmouth/lm-blocking-resolver.c Sun Nov 15 15:55:27 2015 +0100
+++ b/loudmouth/lm-blocking-resolver.c Mon Jan 11 20:31:29 2016 +0100
@@ -29,6 +29,7 @@
#include <arpa/nameser_compat.h>
#endif
+#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
--- a/loudmouth/lm-resolver.c Sun Nov 15 15:55:27 2015 +0100
+++ b/loudmouth/lm-resolver.c Mon Jan 11 20:31:29 2016 +0100
@@ -27,6 +27,7 @@
#include <arpa/nameser_compat.h>
#endif
+#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>