From b222b2304eb3ee8b169f6ef3efaffe71eb0fde13 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 28 Nov 2005 20:21:35 +0000 Subject: Yang Tse's changes to provide an inet_pton() proto for the platforms who don't have one in order to fix a remaining warning on IRIX 6.2. --- configure.ac | 9 +++++++++ lib/inet_pton.h | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index c405010d2..1341e561e 100644 --- a/configure.ac +++ b/configure.ac @@ -1603,6 +1603,15 @@ AC_CHECK_DECL(basename, , #endif ) +AC_CHECK_DECL(inet_pton, , + AC_DEFINE(HAVE_NO_INET_PTON_PROTO), +[ +#ifdef HAVE_ARPA_INET_H +#include +#endif +] +) + AC_MSG_CHECKING([if we are Mac OS X (to disable poll)]) disable_poll=no case $host in diff --git a/lib/inet_pton.h b/lib/inet_pton.h index 8331ba9dc..a659a9774 100644 --- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -28,6 +28,11 @@ int Curl_inet_pton(int, const char *, void *); #ifdef HAVE_INET_PTON + +#if defined(HAVE_NO_INET_PTON_PROTO) +int inet_pton(int af, const char *src, void *dst); +#endif + #ifdef HAVE_ARPA_INET_H #include #endif -- cgit v1.2.3