win32: add missing include header
PATCH 1/1 win32: add missing include header
From: Lev Stipakov <[email protected]...>
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:
Quoted 3 lines
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.
--- src/openvpn/openvpn.vcxproj.filters | 3 +++ src/openvpn/win32.h | 1 + 2 files changed, 4 insertions(+)
src/openvpn/openvpn.vcxproj.filters +3 -0
@@ -518,6 +518,9 @@ <ClInclude Include="ssl_util.h"> <Filter>Header Files</Filter> </ClInclude> + <ClInclude Include="win32-util.h"> + <Filter>Header Files</Filter> + </ClInclude> </ItemGroup> <ItemGroup> <ResourceCompile Include="openvpn_win32_resources.rc">
src/openvpn/win32.h +1 -0
@@ -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 */
Signature · 1 line
2.23.0.windows.1
As discussed on IRC.
Your patch has been applied to the master branch.
commit f1ae83ada4f4c8bb42f40ff87d77af34f627bffa
Author: Lev Stipakov Date: Thu May 13 17:00:39 2021 +0300
win32: add missing include header
Signed-off-by: Lev Stipakov <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg22379.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering