]> granicus.if.org Git - curl/commitdiff
Yang Tse's changes to provide an inet_pton() proto for the platforms who
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2005 20:21:35 +0000 (20:21 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Nov 2005 20:21:35 +0000 (20:21 +0000)
don't have one in order to fix a remaining warning on IRIX 6.2.

configure.ac
lib/inet_pton.h

index c405010d2b7edc02ba35163a2e016828db297e05..1341e561e98ef6f32f129862e159a2758abf56c4 100644 (file)
@@ -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 <arpa/inet.h>
+#endif
+]
+)
+
 AC_MSG_CHECKING([if we are Mac OS X (to disable poll)])
 disable_poll=no
 case $host in
index 8331ba9dc1b671ea432f3eb813458b14e2fc39b9..a659a97744cb58f063d37140bfb5405679f663a8 100644 (file)
 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 <arpa/inet.h>
 #endif