diff options
author | Damien Miller <djm@mindrot.org> | 2003-06-05 09:48:32 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-06-05 09:48:32 +1000 |
commit | 10eac0cf8f946526a7c0c5cd89287076f792b65d (patch) | |
tree | 009eec7a4a142af9ea1cccae3bcf38fb452ff999 /openbsd-compat/fake-getaddrinfo.h | |
parent | 66c884070e57b8ac3db5ead0f51e73ea0ba3ccb0 (diff) |
- (djm) Support AI_NUMERICHOST in fake-getaddrinfo.c. Needed for recent
canohost.c changes.
Diffstat (limited to 'openbsd-compat/fake-getaddrinfo.h')
-rw-r--r-- | openbsd-compat/fake-getaddrinfo.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/openbsd-compat/fake-getaddrinfo.h b/openbsd-compat/fake-getaddrinfo.h index 6943378e9..eaba323d1 100644 --- a/openbsd-compat/fake-getaddrinfo.h +++ b/openbsd-compat/fake-getaddrinfo.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: fake-getaddrinfo.h,v 1.4 2003/02/24 01:35:09 djm Exp $ */ | 1 | /* $Id: fake-getaddrinfo.h,v 1.5 2003/06/04 23:48:33 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _FAKE_GETADDRINFO_H | 3 | #ifndef _FAKE_GETADDRINFO_H |
4 | #define _FAKE_GETADDRINFO_H | 4 | #define _FAKE_GETADDRINFO_H |
@@ -8,14 +8,9 @@ | |||
8 | #include "fake-gai-errnos.h" | 8 | #include "fake-gai-errnos.h" |
9 | 9 | ||
10 | #ifndef AI_PASSIVE | 10 | #ifndef AI_PASSIVE |
11 | # define AI_PASSIVE 1 | 11 | # define AI_PASSIVE (1) |
12 | # define AI_CANONNAME 2 | 12 | # define AI_CANONNAME (1<<1) |
13 | #endif | 13 | # define AI_NUMERICHOST (1<<2) |
14 | |||
15 | #ifndef NI_NUMERICHOST | ||
16 | # define NI_NUMERICHOST 2 | ||
17 | # define NI_NAMEREQD 4 | ||
18 | # define NI_NUMERICSERV 8 | ||
19 | #endif | 14 | #endif |
20 | 15 | ||
21 | #ifndef HAVE_STRUCT_ADDRINFO | 16 | #ifndef HAVE_STRUCT_ADDRINFO |