mirror of https://github.com/moparisthebest/curl
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
This commit is contained in:
parent
fec632e948
commit
01cbf08064
|
@ -25,13 +25,13 @@
|
||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
|
|
||||||
|
char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
|
||||||
|
|
||||||
#ifdef HAVE_INET_NTOP
|
#ifdef HAVE_INET_NTOP
|
||||||
#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size)
|
|
||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#else
|
#define Curl_inet_ntop(af,addr,buf,size) inet_ntop(af,addr,buf,size)
|
||||||
char *Curl_inet_ntop(int af, const void *addr, char *buf, size_t size);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __INET_NTOP_H */
|
#endif /* __INET_NTOP_H */
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
|
|
||||||
#include "setup.h"
|
#include "setup.h"
|
||||||
|
|
||||||
|
int Curl_inet_pton(int, const char *, void *);
|
||||||
|
|
||||||
#ifdef HAVE_INET_PTON
|
#ifdef HAVE_INET_PTON
|
||||||
#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
|
|
||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#else
|
#define Curl_inet_pton(x,y,z) inet_pton(x,y,z)
|
||||||
int Curl_inet_pton(int, const char *, void *);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __INET_PTON_H */
|
#endif /* __INET_PTON_H */
|
||||||
|
|
Loading…
Reference in New Issue