summaryrefslogtreecommitdiff
path: root/openbsd-compat/fake-getaddrinfo.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-06-05 18:52:47 +1000
committerDamien Miller <djm@mindrot.org>2003-06-05 18:52:47 +1000
commitc28e38d23a3d074e02c1f63b64569a31d499a0e8 (patch)
treef3e1582ecddf28f770a1ed84c26d64177e735656 /openbsd-compat/fake-getaddrinfo.h
parentb95bb7f9b13905ade12cac848e34339ae8a1cc2f (diff)
- (djm) Merge all the openbsd/fake-* into fake-rfc2553.[ch]
Diffstat (limited to 'openbsd-compat/fake-getaddrinfo.h')
-rw-r--r--openbsd-compat/fake-getaddrinfo.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/openbsd-compat/fake-getaddrinfo.h b/openbsd-compat/fake-getaddrinfo.h
deleted file mode 100644
index 62e93ddbc..000000000
--- a/openbsd-compat/fake-getaddrinfo.h
+++ /dev/null
@@ -1,42 +0,0 @@
1/* $Id: fake-getaddrinfo.h,v 1.6 2003/06/05 00:04:12 djm Exp $ */
2
3#ifndef _FAKE_GETADDRINFO_H
4#define _FAKE_GETADDRINFO_H
5
6#include "config.h"
7
8#include "fake-gai-errnos.h"
9
10#ifndef AI_PASSIVE
11# define AI_PASSIVE (1)
12# define AI_CANONNAME (1<<1)
13# define AI_NUMERICHOST (1<<2)
14#endif
15
16#ifndef HAVE_STRUCT_ADDRINFO
17struct addrinfo {
18 int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
19 int ai_family; /* PF_xxx */
20 int ai_socktype; /* SOCK_xxx */
21 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
22 size_t ai_addrlen; /* length of ai_addr */
23 char *ai_canonname; /* canonical name for hostname */
24 struct sockaddr *ai_addr; /* binary address */
25 struct addrinfo *ai_next; /* next structure in linked list */
26};
27#endif /* !HAVE_STRUCT_ADDRINFO */
28
29#ifndef HAVE_GETADDRINFO
30int getaddrinfo(const char *, const char *,
31 const struct addrinfo *, struct addrinfo **);
32#endif /* !HAVE_GETADDRINFO */
33
34#ifndef HAVE_GAI_STRERROR
35char *gai_strerror(int);
36#endif /* !HAVE_GAI_STRERROR */
37
38#ifndef HAVE_FREEADDRINFO
39void freeaddrinfo(struct addrinfo *);
40#endif /* !HAVE_FREEADDRINFO */
41
42#endif /* _FAKE_GETADDRINFO_H */