aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/androiddump.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-11 14:36:21 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-11 21:37:01 +0000
commit6c56fdb0410266b3c0fb24db484dc57eceea9432 (patch)
tree1ccd3fce0e17c102e60f144a31ad909aae201876 /extcap/androiddump.c
parent4bcdfee8ec78069ff31551bbc5933bd43b095942 (diff)
Use HAVE_ARPA_INET_H to control whether to include <arpa/inet.h>.
That's how we do it elsewhere. Change-Id: Icd44d8bdec2425b58a4479cd60f08788c85c4d71 Reviewed-on: https://code.wireshark.org/review/8023 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap/androiddump.c')
-rw-r--r--extcap/androiddump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index 17e6346e62..4922853e58 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -44,6 +44,10 @@
#include <sys/socket.h>
#endif
+#ifdef HAVE_ARPA_INET_H
+ #include <arpa/inet.h>
+#endif
+
#ifndef HAVE_GETOPT_LONG
#include "wsutil/wsgetopt.h"
#endif
@@ -62,8 +66,6 @@
/*
* UN*X, or Windows pretending to be UN*X with the aid of Cygwin.
*/
- #include <arpa/inet.h>
-
#define closesocket(socket) close(socket)
#endif