Sorry for the noise. I just discovered you've switchd to Git since I was involved with OpenVPN. With the SVN-repo still there, I wrongfully assumed that was the trunk (latest top) of developement. Here is an updated patch:
--- Git-latest\win\config.h.in Sat Apr 09 14:25:58 2011 +++ win\config.h.in Sat Apr 09 14:51:55 2011 @@ -26,6 +26,9 @@ * Configuration header for Win32 using the MSVC environment. */ +#ifndef OPENVPN_CONFIG_H +#define OPENVPN_CONFIG_H + #include <windows.h> #include <winsock2.h> #include "autodefs.h" /* machine generated */ @@ -274,6 +277,7 @@ /* type to use in place of socklen_t if not defined */ #define socklen_t unsigned int +#ifndef __MINGW32__ /* 32-bit unsigned type */ #define uint32_t unsigned int @@ -282,6 +286,7 @@ /* 8-bit unsigned type */ #define uint8_t unsigned char +#endif /* Route command */ #define ROUTE_PATH "route" @@ -314,3 +319,5 @@ #define HAVE_CPP_VARARG_MACRO_ISO 1 #endif #endif + +#endif /* OPENVPN_CONFIG_H */ --------------- The above header-guard makes service-win32/openvpnserv.c compile since config.h is included twice for this file. --gv