From aa2865c7a41e2f005fe08af9ff5d93d6a4055b4c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 7 Feb 2011 14:41:44 +0000 Subject: add compatability for inet_pton and inet_aton svn path=/trunk/netsurf/; revision=11627 --- utils/config.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'utils/config.h') diff --git a/utils/config.h b/utils/config.h index 950429b57..b05785390 100644 --- a/utils/config.h +++ b/utils/config.h @@ -47,6 +47,22 @@ char *strcasestr(const char *haystack, const char *needle); char *strchrnul(const char *s, int c); #endif +#define HAVE_INETATON +#if (defined(_WIN32)) +#undef HAVE_INETATON +#include +#define EAFNOSUPPORT WSAEAFNOSUPPORT +int inet_aton(const char *cp, struct in_addr *inp); +#else +#include +#include +#endif + +#define HAVE_INETPTON +#if (defined(_WIN32)) +#undef HAVE_INETPTON +int inet_pton(int af, const char *src, void *dst); +#endif #define HAVE_UTSNAME #if (defined(_WIN32)) -- cgit v1.2.3