0
0
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:
James Yonan 2020-08-23 11:10:42 -06:00 committed by David Sommerseth
parent fc58a8b587
commit a2bbb1d65c
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -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