summaryrefslogtreecommitdiff
path: root/openbsd-compat/fake-getaddrinfo.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-06-05 10:04:12 +1000
committerDamien Miller <djm@mindrot.org>2003-06-05 10:04:12 +1000
commitb95bb7f9b13905ade12cac848e34339ae8a1cc2f (patch)
tree6bba63edd710e839b5e6523b391346b0a81025bd /openbsd-compat/fake-getaddrinfo.h
parentceb3136f5f121e0d6d3a78dcc52c6bf186a7f872 (diff)
- (djm) Don't use xmalloc() or pull in toplevel headers in fake-* code
Diffstat (limited to 'openbsd-compat/fake-getaddrinfo.h')
-rw-r--r--openbsd-compat/fake-getaddrinfo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsd-compat/fake-getaddrinfo.h b/openbsd-compat/fake-getaddrinfo.h
index eaba323d1..62e93ddbc 100644
--- a/openbsd-compat/fake-getaddrinfo.h
+++ b/openbsd-compat/fake-getaddrinfo.h
@@ -1,4 +1,4 @@
1/* $Id: fake-getaddrinfo.h,v 1.5 2003/06/04 23:48:33 djm Exp $ */ 1/* $Id: fake-getaddrinfo.h,v 1.6 2003/06/05 00:04:12 djm Exp $ */
2 2
3#ifndef _FAKE_GETADDRINFO_H 3#ifndef _FAKE_GETADDRINFO_H
4#define _FAKE_GETADDRINFO_H 4#define _FAKE_GETADDRINFO_H
@@ -27,16 +27,16 @@ struct addrinfo {
27#endif /* !HAVE_STRUCT_ADDRINFO */ 27#endif /* !HAVE_STRUCT_ADDRINFO */
28 28
29#ifndef HAVE_GETADDRINFO 29#ifndef HAVE_GETADDRINFO
30int getaddrinfo(const char *hostname, const char *servname, 30int getaddrinfo(const char *, const char *,
31 const struct addrinfo *hints, struct addrinfo **res); 31 const struct addrinfo *, struct addrinfo **);
32#endif /* !HAVE_GETADDRINFO */ 32#endif /* !HAVE_GETADDRINFO */
33 33
34#ifndef HAVE_GAI_STRERROR 34#ifndef HAVE_GAI_STRERROR
35char *gai_strerror(int ecode); 35char *gai_strerror(int);
36#endif /* !HAVE_GAI_STRERROR */ 36#endif /* !HAVE_GAI_STRERROR */
37 37
38#ifndef HAVE_FREEADDRINFO 38#ifndef HAVE_FREEADDRINFO
39void freeaddrinfo(struct addrinfo *ai); 39void freeaddrinfo(struct addrinfo *);
40#endif /* !HAVE_FREEADDRINFO */ 40#endif /* !HAVE_FREEADDRINFO */
41 41
42#endif /* _FAKE_GETADDRINFO_H */ 42#endif /* _FAKE_GETADDRINFO_H */