4 * Copyright 2016, Dario Lombardo
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
15 #if defined(_WIN32) && !defined(__CYGWIN__)
21 #define socket_handle_t SOCKET
25 * UN*X, or Windows pretending to be UN*X with the aid of Cygwin.
33 #ifdef HAVE_SYS_SOCKET_H
34 #include <sys/socket.h>
37 #define closesocket(socket) close(socket)
38 #define socket_handle_t int
39 #define INVALID_SOCKET (-1)
40 #define SOCKET_ERROR (-1)
43 #ifdef HAVE_ARPA_INET_H
44 #include <arpa/inet.h>
47 #endif /* __SOCKET_H__ */
50 * Editor modelines - https://www.wireshark.org/tools/modelines.html
58 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
59 * :indentSize=8:tabSize=8:noTabs=false: