Skip to content

Commit

Permalink
Yang Tse: fixes the use of Curl_inet_ntop and Curl_inet_pton with no
Browse files Browse the repository at this point in the history
prototypes on some platforms, ie IRIX 6.2 MIPS C 6.2
  • Loading branch information
bagder committed Nov 25, 2005
1 parent fec632e commit 01cbf08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/inet_ntop.h
Expand Up @@ -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 */
6 changes: 3 additions & 3 deletions lib/inet_pton.h
Expand Up @@ -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 */

0 comments on commit 01cbf08

Please sign in to comment.