From 01cbf08064ff11486df847aea4548abb828841fb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Nov 2005 22:20:02 +0000 Subject: [PATCH] Yang Tse: fixes the use of Curl_inet_ntop and Curl_inet_pton with no prototypes on some platforms, ie IRIX 6.2 MIPS C 6.2 --- lib/inet_ntop.h | 6 +++--- lib/inet_pton.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index 12165cd1b041d3..54d64bd198f84f 100644 --- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -25,13 +25,13 @@ #include "setup.h" +char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size); + #ifdef HAVE_INET_NTOP -#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size) #ifdef HAVE_ARPA_INET_H #include #endif -#else -char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size); +#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size) #endif #endif /* __INET_NTOP_H */ diff --git a/lib/inet_pton.h b/lib/inet_pton.h index 918a4dc1f78029..8331ba9dc1b671 100644 --- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -25,13 +25,13 @@ #include "setup.h" +int Curl_inet_pton(int, const char *, void *); + #ifdef HAVE_INET_PTON -#define Curl_inet_pton(x,y,z) inet_pton(x,y,z) #ifdef HAVE_ARPA_INET_H #include #endif -#else -int Curl_inet_pton(int, const char *, void *); +#define Curl_inet_pton(x,y,z) inet_pton(x,y,z) #endif #endif /* __INET_PTON_H */