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 6943378e..eaba323d 100644 --- a/openbsd-compat/fake-getaddrinfo.h +++ b/openbsd-compat/fake-getaddrinfo.h @@ -1,4 +1,4 @@ -/* $Id: fake-getaddrinfo.h,v 1.4 2003/02/24 01:35:09 djm Exp $ */ +/* $Id: fake-getaddrinfo.h,v 1.5 2003/06/04 23:48:33 djm Exp $ */ #ifndef _FAKE_GETADDRINFO_H #define _FAKE_GETADDRINFO_H @@ -8,14 +8,9 @@ #include "fake-gai-errnos.h" #ifndef AI_PASSIVE -# define AI_PASSIVE 1 -# define AI_CANONNAME 2 -#endif - -#ifndef NI_NUMERICHOST -# define NI_NUMERICHOST 2 -# define NI_NAMEREQD 4 -# define NI_NUMERICSERV 8 +# define AI_PASSIVE (1) +# define AI_CANONNAME (1<<1) +# define AI_NUMERICHOST (1<<2) #endif #ifndef HAVE_STRUCT_ADDRINFO |