From 356e9c45647071ac9f9389256dea53bbbd9c7707 Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Wed, 8 Apr 2015 12:44:50 +0200 Subject: [PATCH] androiddump: Fix missing headers for Mac OSX Add sys/socket.h as well as arpa/inet.h and the definition of closesocket. Change-Id: I3986a1cd019c40e7c27cecb3752fd8b7374de6da Reviewed-on: https://code.wireshark.org/review/7980 Reviewed-by: Michal Labedzki Tested-by: Michal Labedzki --- extcap/androiddump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extcap/androiddump.c b/extcap/androiddump.c index 986823cb50..9676a39e58 100644 --- a/extcap/androiddump.c +++ b/extcap/androiddump.c @@ -40,6 +40,10 @@ #include #endif +#ifdef HAVE_SYS_SOCKET_H + #include +#endif + #ifndef HAVE_GETOPT_LONG #include "wsutil/wsgetopt.h" #endif @@ -55,7 +59,7 @@ #include #endif #endif -#if (defined(__linux__) || defined(__CYGWIN__)) +#if (defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__)) #include #define closesocket(socket) close(socket)