MIME-version: 1.0 Message-id: From: Gisle Vanem Date: Sat, 09 Apr 2011 14:10:07 +0200 Subject: [Openvpn-devel] [Patch] config-win32.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-type: text/plain; CHARSET=US-ASCII; charset="US-ASCII"; format=flowed; reply-type=original Content-Transfer-Encoding: 7bit To: OpenVPN-dev Since MingW for quite a long time (since 3.2 in 2008?) has defined 'uint32_t' etc. in it's , we need to guard against defining them again. Ideally we should figure out in what version of MingW this happened. But for now: --- SVN-Latest\config-win32.h Sat Apr 09 05:59:09 2011 +++ config-win32.h Sat Apr 09 13:49:55 2011 @@ -258,6 +258,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 @@ -266,6 +267,7 @@ /* 8-bit unsigned type */ #define uint8_t unsigned char +#endif /* Route command */ #define ROUTE_PATH "route" ---------------- --gv