From 6653b4adb35ebd5b6a2d356efd1f916d468f4875 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Sat, 13 Sep 2003 15:10:24 +0000 Subject: [PATCH] fix mingw/vc7 bustage --- nsprpub/pr/include/md/_winnt.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nsprpub/pr/include/md/_winnt.h b/nsprpub/pr/include/md/_winnt.h index d630f63cc2a..6dcc991bf04 100644 --- a/nsprpub/pr/include/md/_winnt.h +++ b/nsprpub/pr/include/md/_winnt.h @@ -70,6 +70,9 @@ #define _PR_INET6_PROBE #ifndef _PR_INET6 #define AF_INET6 23 +/* newer ws2tcpip.h provides these */ +#ifndef AI_CANONNAME +#define AI_CANONNAME 0x2 struct addrinfo { int ai_flags; int ai_family; @@ -80,7 +83,7 @@ struct addrinfo { struct sockaddr *ai_addr; struct addrinfo *ai_next; }; -#define AI_CANONNAME 0x2 +#endif #endif #define _PR_HAVE_THREADSAFE_GETHOST #define _PR_HAVE_ATOMIC_OPS