]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Declare Windows version of openvpn_execve() before use
authorSelva Nair <selva.nair@gmail.com>
Thu, 25 Oct 2018 03:05:16 +0000 (23:05 -0400)
committerGert Doering <gert@greenie.muc.de>
Sun, 28 Oct 2018 16:09:45 +0000 (17:09 +0100)
commit bf97c00f7dba441b504881f38e40afcbb610a39f moved
the generic openvpn_execve() to run_command.c and made it static.
But the Windows version is still in win32.c and is called from
run_command.c

Fix by declaring the function in win32.h

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1540436716-5725-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17825.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/win32.h

index b5cbe255a574076ec42248581188cda62bcbb306..4b4524f12b694dfd1e5c9005a41a5d7099abe7c5 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "mtu.h"
 #include "openvpn-msg.h"
+#include "argv.h"
 
 /* location of executables */
 #define SYS_PATH_ENV_VAR_NAME "SystemRoot"  /* environmental variable name that normally contains the system path */
@@ -316,5 +317,11 @@ const char *win32_version_string(struct gc_arena *gc, bool add_name);
 bool send_msg_iservice(HANDLE pipe, const void *data, size_t size,
                        ack_message_t *ack, const char *context);
 
+/*
+ * Attempt to simulate fork/execve on Windows
+ */
+int
+openvpn_execve(const struct argv *a, const struct env_set *es, const unsigned int flags);
+
 #endif /* ifndef OPENVPN_WIN32_H */
 #endif /* ifdef _WIN32 */