diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-25 22:20:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-25 22:20:02 +0000 |
commit | 01cbf08064ff11486df847aea4548abb828841fb (patch) | |
tree | 31b42495c9ddc4ff8f118fa7b4db217f9999a06f /lib/inet_pton.h | |
parent | fec632e948e12842f0e8f680f0b8a0e0c408920d (diff) | |
download | curl-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_pton.h')
-rw-r--r-- | lib/inet_pton.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inet_pton.h b/lib/inet_pton.h index 918a4dc1f..8331ba9dc 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 <arpa/inet.h> #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 */ |