summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-09-18 00:45:28 +0000
committerwtc%netscape.com <devnull@localhost>2003-09-18 00:45:28 +0000
commit89b41a4aba649ccbc594d89eb12d926ec8c52f85 (patch)
treef0b05510fdd6e45ebdd0d505c6bc24d9636a2e35
parent9d4416ed4c62f9a37acb56dd14f64c24ec28dbf1 (diff)
downloadnspr-hg-89b41a4aba649ccbc594d89eb12d926ec8c52f85.tar.gz
Bugzilla bug 219487: fixed build failure on OpenVMS. struct addrinfo is
defined in <netdb.h>. We use AI_CANONNAME, a macro to be used with struct addrinfo, to detect that. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/include/md/_openvms.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pr/include/md/_openvms.h b/pr/include/md/_openvms.h
index 735c3f2c..040ff46d 100644
--- a/pr/include/md/_openvms.h
+++ b/pr/include/md/_openvms.h
@@ -111,6 +111,8 @@ struct ip_mreq {
#define _PR_HAVE_INET_NTOP
#else
#define AF_INET6 26
+#ifndef AI_CANONNAME
+#define AI_CANONNAME 0x00000002
struct addrinfo {
int ai_flags;
int ai_family;
@@ -121,7 +123,7 @@ struct addrinfo {
struct sockaddr *ai_addr;
struct addrinfo *ai_next;
};
-#define AI_CANONNAME 0x00000002
+#endif
#define AI_V4MAPPED 0x00000010
#define AI_ALL 0x00000008
#define AI_ADDRCONFIG 0x00000020