summaryrefslogtreecommitdiff
path: root/lib/inet_ntop.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-25 22:20:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-25 22:20:02 +0000
commit01cbf08064ff11486df847aea4548abb828841fb (patch)
tree31b42495c9ddc4ff8f118fa7b4db217f9999a06f /lib/inet_ntop.h
parentfec632e948e12842f0e8f680f0b8a0e0c408920d (diff)
downloadcurl-01cbf08064ff11486df847aea4548abb828841fb.tar.gz
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
Diffstat (limited to 'lib/inet_ntop.h')
-rw-r--r--lib/inet_ntop.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h
index 12165cd1b..54d64bd19 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 <arpa/inet.h>
#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 */