+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]
// are changed infrequently
//
+/*
+ * Minimum version is Windows XP
+ */
+#define _WIN32_WINNT 0x0501
+
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE 1
#endif
* 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
* 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>
}
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;
}
}
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;
}