Skip to content

Commit

Permalink
include netinet/in.h in resolver
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
moench-tegeder committed Jan 11, 2016
1 parent bc818cc commit 1b90bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions loudmouth/lm-blocking-resolver.c
Expand Up @@ -29,6 +29,7 @@
#include <arpa/nameser_compat.h>
#endif

#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>

Expand Down
1 change: 1 addition & 0 deletions loudmouth/lm-resolver.c
Expand Up @@ -27,6 +27,7 @@
#include <arpa/nameser_compat.h>
#endif

#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>

Expand Down

0 comments on commit 1b90bd4

Please sign in to comment.