summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2003-09-13 15:00:35 +0000
committerwtc%netscape.com <devnull@localhost>2003-09-13 15:00:35 +0000
commit65576bb3a7541c41257eaaff301e6e5c048854f4 (patch)
tree7c6e1b7455035a4b1978592f9d89cc6a3657de98
parent897f6c4a67ef3d2b4fa6b0b017f197ed3461c8fe (diff)
downloadnspr-hg-65576bb3a7541c41257eaaff301e6e5c048854f4.tar.gz
fix mingw/vc7 bustage
-rw-r--r--pr/include/md/_winnt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pr/include/md/_winnt.h b/pr/include/md/_winnt.h
index d630f63c..6dcc991b 100644
--- a/pr/include/md/_winnt.h
+++ b/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