summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-01-23 15:56:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-01-23 15:56:13 +0000
commitf7fee067b6fddc33fcefb24665daff46b2b18608 (patch)
treee1607293e8b1dc794979e3bd49ef6d3635c332e0
parent4b13fd15d48343a2625df0e87606032ee2b1e7af (diff)
downloadcygnal-f7fee067b6fddc33fcefb24665daff46b2b18608.tar.gz
cygnal-f7fee067b6fddc33fcefb24665daff46b2b18608.tar.bz2
cygnal-f7fee067b6fddc33fcefb24665daff46b2b18608.zip
* include/netdb.h: Add AI_xxx flags available since Vista.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/netdb.h14
2 files changed, 8 insertions, 10 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bccfee384..d590993b3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2007-01-23 Corinna Vinschen <corinna@vinschen.de>
+ * include/netdb.h: Add AI_xxx flags available since Vista.
+
+2007-01-23 Corinna Vinschen <corinna@vinschen.de>
+
* net.cc (if_nametoindex): Free IP_ADAPTER_ADDRESSES memory.
(if_indextoname): Ditto.
(if_nameindex): Ditto. Remove duplicate indexed entries in result.
diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h
index 74c205990..c9b46d3e7 100644
--- a/winsup/cygwin/include/netdb.h
+++ b/winsup/cygwin/include/netdb.h
@@ -147,16 +147,10 @@ extern __declspec(dllimport) int h_errno;
#define AI_PASSIVE 1
#define AI_CANONNAME 2
#define AI_NUMERICHOST 4
-/*
- * These are not available in the WinSock implementation. It wouldn't make
- * sense to support them in the ipv4 only case, so we drop them entirely.
- * We can define them if we run into problems but they are non-functional, so...
- */
-#if 0
-#define AI_V4MAPPED 16
-#define AI_ALL 32
-#define AI_ADDRCONFIG 64
-#endif
+/* Only available since Vista. Ignored on older systems. */
+#define AI_ALL 256
+#define AI_ADDRCONFIG 1024
+#define AI_V4MAPPED 2048
#define NI_NOFQDN 1
#define NI_NUMERICHOST 2