From 4ca23c77fabd23cd610ada221fac494c0ae9b030 Mon Sep 17 00:00:00 2001
From: Todd Short <tshort@akamai.com>
Date: Wed, 1 Apr 2015 09:02:28 -0400
Subject: [PATCH 21/26] Windows: Add defintions for AI_ constants

Add defintions for AI_ADDRCONFIG and AI_NUMERICSERV

(cherry picked from commit bcfe8010fdfea3867fc4e56bf5a78a0d1f0e7040)
---
 e_os.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/e_os.h b/e_os.h
index fac0d35..958e8c6 100644
--- a/e_os.h
+++ b/e_os.h
@@ -77,6 +77,17 @@ extern "C" {
 #  define REF_PRINT(a,b)  fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->references,a)
 # endif
 
+# if (_MSC_VER < 1500) /* pre-VC9 */
+   /* These are defined in glibc 2.3.3 and 2.3.4 respectively, and are not
+    * defined before in Visual Studio before VC9 */
+#  ifndef AI_ADDRCONFIG
+#   define AI_ADDRCONFIG 0
+#  endif
+#  ifndef AI_NUMERICSERV
+#   define AI_NUMERICSERV 0
+#  endif
+# endif /* pre-VC9 */
+
 # ifndef DEVRANDOM
 /*
  * set this to a comma-separated list of 'random' device files to try out. My
-- 
2.3.2 (Apple Git-55)

