forked from osmocom/wireshark
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:
parent
b99cf21c25
commit
356e9c4564
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue