]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3187. [port] win32: support for Visual Studio 2008. [RT #26356]
authorMark Andrews <marka@isc.org>
Sun, 30 Oct 2011 23:39:39 +0000 (23:39 +0000)
committerMark Andrews <marka@isc.org>
Sun, 30 Oct 2011 23:39:39 +0000 (23:39 +0000)
CHANGES
bin/win32/BINDInstall/StdAfx.h
config.h.win32
lib/isc/win32/net.c

diff --git a/CHANGES b/CHANGES
index 64c567150b7bcdcd3f2566c7d201f615624d3a2e..488e3bad7e4e3577e3aa6826e92e10415c916130 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3187.  [port]          win32: support for Visual Studio 2008.  [RT #26356]
+
        --- 9.9.0b1 released ---
 
 3186.  [bug]           Version/db mis-match in rpz code. [RT #26180]
index d5929bbadc93ffcee644bb2f7f37313bbc661ff7..9ed780d86231a4c3dabff476318976a870a411fc 100644 (file)
@@ -3,6 +3,11 @@
 //      are changed infrequently
 //
 
+/*
+ * Minimum version is Windows XP
+ */
+#define _WIN32_WINNT 0x0501
+
 #ifndef _CRT_SECURE_NO_DEPRECATE
 #define _CRT_SECURE_NO_DEPRECATE 1
 #endif
index 0cbab551b44a94f0c83acc7ca68945141109b05f..fc961fa6c0724bb374dab33f126f9f7ca9fc756d 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.h.win32,v 1.27 2011/03/10 04:36:13 each Exp $ */
+/* $Id: config.h.win32,v 1.28 2011/10/30 23:39:39 marka Exp $ */
 
 /*
  * win32 configuration file
 #define _USE_32BIT_TIME_T 1
 
 /*
- * Windows NT and 2K only
+ * Minimum version is Windows XP
  */
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0400
-#endif
+#define _WIN32_WINNT 0x0501
 
 /* Define if you have the ANSI C header files.  */
 #define STDC_HEADERS 1
  */
 
 #define snprintf _snprintf
+#if _MSC_VER <= 1400
 #define vsnprintf _vsnprintf
+#endif
 #define strcasecmp  _stricmp
 #define strncasecmp _strnicmp
 #define strdup _strdup
index b88349d1c99e39bb44906cf3d13cea4933695042..d4d5934abb32be6c8eccb08f5c9b3300e9e283e1 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: net.c,v 1.20 2009/09/08 23:41:50 tbox Exp $ */
+/* $Id: net.c,v 1.21 2011/10/30 23:39:39 marka Exp $ */
 
 #include <config.h>
 
@@ -166,7 +166,8 @@ try_ipv6only(void) {
        }
 
        on = 1;
-       if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) {
+       if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on,
+                      sizeof(on)) < 0) {
                ipv6only_result = ISC_R_NOTFOUND;
                goto close;
        }
@@ -189,7 +190,8 @@ try_ipv6only(void) {
        }
 
        on = 1;
-       if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)) < 0) {
+       if (setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&on,
+                      sizeof(on)) < 0) {
                ipv6only_result = ISC_R_NOTFOUND;
                goto close;
        }