diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ChangeLog | 6 | ||||
| -rw-r--r-- | src/include/fake-addrinfo.h | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 0f969ec31..db83cc52c 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 Ken Raeburn <raeburn@mit.edu> + + * fake-addrinfo.h (AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL, + AI_DEFAULT): Define as bogus values, since they're part of + getipnodeby* API, not getaddrinfo API. + 2001-08-29 Ken Raeburn <raeburn@mit.edu> * socket-utils.h: New file. diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index 8914443d7..92912ae16 100644 --- a/src/include/fake-addrinfo.h +++ b/src/include/fake-addrinfo.h @@ -80,14 +80,17 @@ struct addrinfo { #define AI_CANONNAME 0x02 #undef AI_NUMERICHOST #define AI_NUMERICHOST 0x04 +/* N.B.: AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL, and AI_DEFAULT are part + of the spec for getipnodeby*, and *not* part of the spec for + getaddrinfo. Don't use them! */ #undef AI_V4MAPPED -#define AI_V4MAPPED 0x08 /* ignored */ +#define AI_V4MAPPED eeeevil! #undef AI_ADDRCONFIG -#define AI_ADDRCONFIG 0x10 /* ignored */ +#define AI_ADDRCONFIG eeeevil! #undef AI_ALL -#define AI_ALL 0x20 /* ignored */ - -#define AI_DEFAULT (AI_V4MAPPED | AI_ADDRCONFIG) +#define AI_ALL eeeevil! +#undef AI_DEFAULT +#define AI_DEFAULT eeeevil! #ifndef NI_MAXHOST #define NI_MAXHOST 1025 @@ -150,9 +153,6 @@ char *gai_strerror (int code); #endif /* HAVE_GETADDRINFO */ /* Fudge things on older gai implementations. */ -#ifndef AI_DEFAULT -# define AI_DEFAULT 0 /* (AI_V4MAPPED | AI_ADDRCONFIG) */ -#endif /* AIX 4.3.3 is based on RFC 2133; no AI_NUMERICHOST. */ #ifndef AI_NUMERICHOST # define AI_NUMERICHOST 0 |
