--- .distfiles/openvpn-2.2-RC2-ipv6-0.4.16.patch 2011-03-28 06:10:04.000000000 +0800 +++ .distfiles/openvpn-2.2-RC2-ipv6-0.4.16.patch 2011-05-01 23:28:56.000000000 +0800 @@ -85,14 +85,6 @@ diff -x '*~' -uN openvpn-2.2-RC2/configure openvpn-2.2-RC2-ipv6-0.4.16/configure --- openvpn-2.2-RC2/configure 2011-03-24 22:05:50.000000000 +0100 +++ openvpn-2.2-RC2-ipv6-0.4.16/configure 2011-03-27 23:50:16.621773000 +0200 -@@ -1,6 +1,6 @@ - #! /bin/sh - # Guess values for system-dependent variables and create Makefiles. --# Generated by GNU Autoconf 2.66 for OpenVPN 2.2-RC2. -+# Generated by GNU Autoconf 2.67 for OpenVPN 2.2-RC2. - # - # Report bugs to . - # @@ -715,6 +715,7 @@ enable_http enable_fragment @@ -121,15 +113,6 @@ --disable-port-share Disable TCP server port-share support (--port-share) --disable-debug Disable debugging support (disable gremlin and verb 7+ messages) --enable-small Enable smaller executable size (disable OCC, usage message, and verb 4 parm list) -@@ -1492,7 +1495,7 @@ - if $ac_init_version; then - cat <<\_ACEOF - OpenVPN configure 2.2-RC2 --generated by GNU Autoconf 2.66 -+generated by GNU Autoconf 2.67 - - Copyright (C) 2010 Free Software Foundation, Inc. - This configure script is free software; the Free Software Foundation @@ -1564,7 +1567,7 @@ mv -f conftest.er1 conftest.err fi @@ -148,15 +131,6 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } -@@ -2093,7 +2096,7 @@ - running configure, to aid debugging if configure makes a mistake. - - It was created by OpenVPN $as_me 2.2-RC2, which was --generated by GNU Autoconf 2.66. Invocation command line was -+generated by GNU Autoconf 2.67. Invocation command line was - - $ $0 $@ - @@ -2351,7 +2354,7 @@ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} @@ -363,24 +337,6 @@ if test "$MEMCHECK" = "valgrind"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind tool and Header files..." >&5 -@@ -8243,7 +8272,7 @@ - # values after options handling. - ac_log=" - This file was extended by OpenVPN $as_me 2.2-RC2, which was --generated by GNU Autoconf 2.66. Invocation command line was -+generated by GNU Autoconf 2.67. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS -@@ -8309,7 +8338,7 @@ - ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" - ac_cs_version="\\ - OpenVPN config.status 2.2-RC2 --configured by $0, generated by GNU Autoconf 2.66, -+configured by $0, generated by GNU Autoconf 2.67, - with options \\"\$ac_cs_config\\" - - Copyright (C) 2010 Free Software Foundation, Inc. @@ -8330,11 +8359,16 @@ while test $# != 0 do @@ -822,6 +778,7 @@ +#ifdef USE_PF_INET6 + " [PF_INET6]" +#endif + " [IPv6 payload 20110424-2 (2.2RC2)]" " built on " __DATE__ ; @@ -3064,27 +3021,6 @@ diff -x '*~' -uN openvpn-2.2-RC2/syshead.h openvpn-2.2-RC2-ipv6-0.4.16/syshead.h --- openvpn-2.2-RC2/syshead.h 2011-03-24 21:58:25.000000000 +0100 +++ openvpn-2.2-RC2-ipv6-0.4.16/syshead.h 2011-03-27 23:50:13.551773003 +0200 -@@ -28,6 +28,10 @@ - /* - * Only include if not during configure - */ -+#ifdef WIN32 -+/* USE_PF_INET6: win32 ipv6 exists only after 0x0501 (XP) */ -+#define WINVER 0x0501 -+#endif - #ifndef PACKAGE_NAME - #include "config.h" - #endif -@@ -339,6 +343,9 @@ - #ifdef WIN32 - #include - #include -+/* The following two headers are needed of USE_PF_INET6 */ -+#include -+#include - #endif - - #ifdef HAVE_SYS_MMAN_H @@ -383,9 +390,10 @@ #endif