diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-05-22 19:07:34 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-05-23 02:08:13 +0000 |
commit | b07d5c73b6e39d0ffc435e4f6c5372ac3d29cc6e (patch) | |
tree | 255997e4232627d4ce8aadd468e9c4d16ed29135 /wsutil/interface.c | |
parent | 81d65ccec65c9bbe972fcb64933fc34d9679562c (diff) |
Explicitly include <netinet/in.h>.
We use structures from it, and must not depend on <arpa/inet.h> or
<ifaddrs.h> to include it for us, as that doesn't necessarily happen on
all platforms (it doesn't happen on DragonFly BSD, for example).
Change-Id: Id0e6cc406b774efb076bb8e04827fdb7d502be16
Reviewed-on: https://code.wireshark.org/review/15541
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/interface.c')
-rw-r--r-- | wsutil/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wsutil/interface.c b/wsutil/interface.c index 0e0b7c4056..9a6cca74ba 100644 --- a/wsutil/interface.c +++ b/wsutil/interface.c @@ -37,6 +37,10 @@ #include <ifaddrs.h> #endif +#ifdef HAVE_NETINET_IN_H + #include <netinet/in.h> +#endif + GSList *local_interfaces_to_list(void) { GSList *interfaces = NULL; |