Commit 7fb611d3 authored by Evan Hunt's avatar Evan Hunt

[master] fix prototypes

parent b103b0c0
......@@ -181,18 +181,22 @@ struct addrinfo {
#endif
#define gai_strerror irs_gai_strerror
#endif
int
getaddrinfo(const char *hostname, const char *servname,
const struct addrinfo *hints, struct addrinfo **res);
int
getnameinfo(const struct sockaddr *sa, IRS_GETNAMEINFO_SOCKLEN_T salen,
char *host, IRS_GETNAMEINFO_BUFLEN_T hostlen,
char *serv, IRS_GETNAMEINFO_BUFLEN_T servlen,
IRS_GETNAMEINFO_FLAGS_T flags);
void freeaddrinfo (struct addrinfo *ai);
extern int getaddrinfo (const char *name,
const char *service,
const struct addrinfo *req,
struct addrinfo **pai);
extern int getnameinfo (const struct sockaddr *sa,
socklen_t salen, char *host,
socklen_t hostlen, char *serv,
socklen_t servlen, int flags);
extern void freeaddrinfo (struct addrinfo *ai);
extern const char *gai_strerror (int ecode);
IRS_GAISTRERROR_RETURN_T
gai_strerror(int ecode);
#endif
/*
* Tell Emacs to use C mode on this file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment