aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2015-04-08 12:44:50 +0200
committerMichal Labedzki <michal.labedzki@tieto.com>2015-04-08 11:12:50 +0000
commit356e9c45647071ac9f9389256dea53bbbd9c7707 (patch)
tree3a842cc835ae427efe796f36326defd20567ece7 /extcap
parentb99cf21c2546bc8260d50f17e60ab614092dac24 (diff)
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 <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/androiddump.c6
1 files changed, 5 insertions, 1 deletions
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 <getopt.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+#endif
+
#ifndef HAVE_GETOPT_LONG
#include "wsutil/wsgetopt.h"
#endif
@@ -55,7 +59,7 @@
#include <winsock2.h>
#endif
#endif
-#if (defined(__linux__) || defined(__CYGWIN__))
+#if (defined(__linux__) || defined(__APPLE__) || defined(__CYGWIN__))
#include <arpa/inet.h>
#define closesocket(socket) close(socket)