include netinet/in.h in resolver
authorChristoph Moench-Tegeder <cmt@burggraben.net>
Mon, 11 Jan 2016 20:31:29 +0100
changeset 677 a6a41aec40f2
parent 676 745e7d2e5831
child 678 66017d9f6187
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
loudmouth/lm-resolver.c
--- 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>