Message ID | 1540436716-5725-1-git-send-email-selva.nair@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [Openvpn-devel] Declare Windows version of openvpn_execve() before use | expand |
Acked-by: Gert Doering <gert@greenie.muc.de> "taking the quick fix for now". Test built on mingw/ubuntu 16.04. Your patch has been applied to the master branch. commit 253f015558d3ce3c74a4806748c8d4fcab96fb5e Author: Selva Nair Date: Wed Oct 24 23:05:16 2018 -0400 Declare Windows version of openvpn_execve() before use 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> -- kind regards, Gert Doering
diff --git a/src/openvpn/win32.h b/src/openvpn/win32.h index b5cbe25..4b4524f 100644 --- a/src/openvpn/win32.h +++ b/src/openvpn/win32.h @@ -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 */