[Openvpn-devel,v1] Add missing includes for C files and their own headers
Commit Message
From: Frank Lichtenheld <frank@lichtenheld.com>
We don't strictly need those, but it is much better to
have them since the compiler will then ensure that we
do not have subtle differences between declarations and
definitions.
Also fix
- socks.h not being able to be included on its own
- open_tun_afunix stub for Windows having wrong
parameters
Change-Id: I33b246dea9eb9383e1ca928e1330ba840b7f990c
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Razvan Cojocaru <razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1984
---
This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1984
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Razvan Cojocaru <razvanc@mailbox.org>
@@ -31,6 +31,7 @@
#include <lz4.h>
#include "comp.h"
+#include "comp-lz4.h"
#include "error.h"
#include "memdbg.h"
@@ -47,6 +47,7 @@
#include <ctype.h>
#include "buffer.h"
+#include "cryptoapi.h"
#include "openssl_compat.h"
#include "win32.h"
#include "xkey_common.h"
@@ -27,6 +27,7 @@
#include "syshead.h"
#include "dco.h"
+#include "dco_win.h"
#include "forward.h"
#include "tun.h"
#include "crypto.h"
@@ -34,6 +34,7 @@
#include "syshead.h"
+#include "socks.h"
#include "common.h"
#include "misc.h"
#include "win32.h"
@@ -29,6 +29,8 @@
#define SOCKS_H
#include "buffer.h"
+#include "interval.h"
+#include "sig.h"
struct openvpn_sockaddr;
struct link_socket_actual;
@@ -35,6 +35,7 @@
#include "argv.h"
#include "options.h"
#include "socket.h"
+#include "tun_afunix.h"
#ifndef WIN32
/* Windows does implement some AF_UNIX functionality but key features
@@ -172,8 +173,7 @@
}
#else /* ifndef WIN32 */
void
-open_tun_afunix(const char *dev, const char *dev_type, int mtu, struct tuntap *tt,
- struct env_set env)
+open_tun_afunix(struct options *o, int mtu, struct tuntap *tt, struct env_set *orig_env)
{
msg(M_ERR, "AF_UNIX socket support not available on this platform");
}
@@ -26,6 +26,7 @@
#endif
#include "siphash.h"
+#include "siphash_openssl.h"
#ifdef ENABLE_CRYPTO_OPENSSL
#include <openssl/opensslv.h>