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-getnameinfo.h | |
parent | 66c884070e57b8ac3db5ead0f51e73ea0ba3ccb0 (diff) |
- (djm) Support AI_NUMERICHOST in fake-getaddrinfo.c. Needed for recent
canohost.c changes.
Diffstat (limited to 'openbsd-compat/fake-getnameinfo.h')
-rw-r--r-- | openbsd-compat/fake-getnameinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openbsd-compat/fake-getnameinfo.h b/openbsd-compat/fake-getnameinfo.h index 7aaabc7f6..6c1bb30a4 100644 --- a/openbsd-compat/fake-getnameinfo.h +++ b/openbsd-compat/fake-getnameinfo.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: fake-getnameinfo.h,v 1.3 2003/05/18 14:13:39 djm Exp $ */ | 1 | /* $Id: fake-getnameinfo.h,v 1.4 2003/06/04 23:48:33 djm Exp $ */ |
2 | 2 | ||
3 | #ifndef _FAKE_GETNAMEINFO_H | 3 | #ifndef _FAKE_GETNAMEINFO_H |
4 | #define _FAKE_GETNAMEINFO_H | 4 | #define _FAKE_GETNAMEINFO_H |
@@ -10,6 +10,12 @@ int getnameinfo(const struct sockaddr *, size_t, char *, size_t, | |||
10 | char *, size_t, int); | 10 | char *, size_t, int); |
11 | #endif /* !HAVE_GETNAMEINFO */ | 11 | #endif /* !HAVE_GETNAMEINFO */ |
12 | 12 | ||
13 | #ifndef NI_NUMERICHOST | ||
14 | # define NI_NUMERICHOST (1) | ||
15 | # define NI_NAMEREQD (1<<1) | ||
16 | # define NI_NUMERICSERV (1<<2) | ||
17 | #endif | ||
18 | |||
13 | #ifndef NI_MAXSERV | 19 | #ifndef NI_MAXSERV |
14 | # define NI_MAXSERV 32 | 20 | # define NI_MAXSERV 32 |
15 | #endif /* !NI_MAXSERV */ | 21 | #endif /* !NI_MAXSERV */ |