mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
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.
This commit is contained in:
parent
fdf9900114
commit
b222b2304e
@ -1603,6 +1603,15 @@ AC_CHECK_DECL(basename, ,
|
|||||||
#endif
|
#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)])
|
AC_MSG_CHECKING([if we are Mac OS X (to disable poll)])
|
||||||
disable_poll=no
|
disable_poll=no
|
||||||
case $host in
|
case $host in
|
||||||
|
@ -28,6 +28,11 @@
|
|||||||
int Curl_inet_pton(int, const char *, void *);
|
int Curl_inet_pton(int, const char *, void *);
|
||||||
|
|
||||||
#ifdef HAVE_INET_PTON
|
#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
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user