From 6c56fdb0410266b3c0fb24db484dc57eceea9432 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 11 Apr 2015 14:36:21 -0700 Subject: Use HAVE_ARPA_INET_H to control whether to include . That's how we do it elsewhere. Change-Id: Icd44d8bdec2425b58a4479cd60f08788c85c4d71 Reviewed-on: https://code.wireshark.org/review/8023 Reviewed-by: Guy Harris --- extcap/androiddump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extcap/androiddump.c') 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 #endif +#ifdef HAVE_ARPA_INET_H + #include +#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 - #define closesocket(socket) close(socket) #endif -- cgit v1.2.3