mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
kovpn.hpp: add dependent includes before #include <kovpn/kovpn.h>
Since userspace and kernel are different build environments, it probably makes more sense to move includes in <kovpn/kovpn.h> out to their enclosing scopes. Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
parent
fc58a8b587
commit
a2bbb1d65c
@ -21,8 +21,7 @@
|
||||
|
||||
// OpenVPN 3 wrapper for kovpn
|
||||
|
||||
#ifndef OPENVPN_KOVPN_KOVPN_HPP
|
||||
#define OPENVPN_KOVPN_KOVPN_HPP
|
||||
#pragma once
|
||||
|
||||
// Not including this file causes redefinition errors
|
||||
// when the sys/ and linux/ headers below are included
|
||||
@ -32,7 +31,7 @@
|
||||
#include <sys/socket.h>
|
||||
|
||||
extern "C" {
|
||||
#include <linux/types.h>
|
||||
#include <uapi/ovpn/shim.h> // for OVPN_SHIM_MAX
|
||||
#include <kovpn/kovpn.h>
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user