From: Lev Stipakov Date: Thu, 13 May 2021 14:00:39 +0000 (+0300) Subject: win32: add missing include header X-Git-Tag: v2.6_beta1~498 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1ae83ada4f4c8bb42f40ff87d77af34f627bffa;p=thirdparty%2Fopenvpn.git win32: add missing include header Commit 5a571fb0 ("Move utility function from win32.c to win32-util.c") moved some functions from win32.[ch] to a new win32-util.[ch], but missed adding new include header, which results in compilation errors like: >cryptoapi.c >C:\Users\lev\Projects\openvpn\src\openvpn\cryptoapi.c(755,53): error C2220: the following warning is treated as an error >C:\Users\lev\Projects\openvpn\src\openvpn\cryptoapi.c(755,53): warning C4047: '=': 'const void *' differs in levels of indirection from 'int' Fix by adding #include "win32-util.h" to "win32.h". While on it, update vcxproj.filters with a new header so that it looks "correct" in VS project view. Signed-off-by: Lev Stipakov Acked-by: Gert Doering Message-Id: <20210513140039.265-1-lstipakov@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22379.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/openvpn.vcxproj.filters b/src/openvpn/openvpn.vcxproj.filters index a4dbb6cd4..3b75eecd0 100644 --- a/src/openvpn/openvpn.vcxproj.filters +++ b/src/openvpn/openvpn.vcxproj.filters @@ -518,6 +518,9 @@ Header Files + + Header Files + diff --git a/src/openvpn/win32.h b/src/openvpn/win32.h index 235738356..f075e0aec 100644 --- a/src/openvpn/win32.h +++ b/src/openvpn/win32.h @@ -30,6 +30,7 @@ #include "mtu.h" #include "openvpn-msg.h" #include "argv.h" +#include "win32-util.h" /* location of executables */ #define SYS_PATH_ENV_VAR_NAME "SystemRoot" /* environmental variable name that normally contains the system path */