From ca8a6d2045160872bce66c514cdcb08443ab99dd Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Wed, 17 Sep 2003 20:26:20 +0000 Subject: [PATCH] Bugzilla bug 219061: fixed build failure on OSF1. struct addrinfo is defined in on recent Tru64 Unix releases. We use AI_CANONNAME, a macro to be used with struct addrinfo, to detect that. git-svn-id: svn://10.0.0.236/trunk@147002 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/include/md/_osf1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/nsprpub/pr/include/md/_osf1.h b/mozilla/nsprpub/pr/include/md/_osf1.h index df6359a1e85..1fa43e22cd3 100644 --- a/mozilla/nsprpub/pr/include/md/_osf1.h +++ b/mozilla/nsprpub/pr/include/md/_osf1.h @@ -70,6 +70,8 @@ #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; @@ -80,7 +82,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