From 2e85975feee4304ebc3e47c3b03653094b839b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Wed, 10 Feb 2016 07:16:08 +0000 Subject: Just #include wsutil/inet_aton.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No need for platform-specific system header boilerplate. Change-Id: I5387a0005ddb0d7aab3c5b9f28d6282053c1b0fd Reviewed-on: https://code.wireshark.org/review/13865 Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- wsutil/inet_aton.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'wsutil/inet_aton.h') diff --git a/wsutil/inet_aton.h b/wsutil/inet_aton.h index bfccb2224f..3d89dc23c2 100644 --- a/wsutil/inet_aton.h +++ b/wsutil/inet_aton.h @@ -28,7 +28,25 @@ #include "ws_symbol_export.h" +#ifdef HAVE_SYS_SOCKET_H +#include /* needed to define AF_ values on UNIX */ +#endif + +#ifdef HAVE_NETINET_IN_H +# include +#endif + +#ifdef HAVE_ARPA_INET_H +#include +#endif + +#ifdef HAVE_WINSOCK2_H +#include +#endif + +#ifndef HAVE_INET_ATON struct in_addr; WS_DLL_PUBLIC int inet_aton(const char* cp_arg, struct in_addr *addr); +#endif #endif -- cgit v1.2.1