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>
This commit is contained in:
Roland Knall 2015-04-08 12:44:50 +02:00 committed by Michal Labedzki
parent b99cf21c25
commit 356e9c4564
1 changed files with 5 additions and 1 deletions

View File

@ -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)