mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
linux/tunsetup: Fix missing asio/errinfo declaration
When building the clinetcfg test client in openvpn3-linux with DCO support, the building fails with the following compiler error: In file included from ./openvpn3-core/openvpn/common/base64.hpp:31:0, from ./openvpn3-core/openvpn/init/initprocess.hpp:31, from ./openvpn3-core/client/ovpncli.cpp:90, from ./openvpn3-core/test/ovpncli/cli.cpp:58, from src/tests/netcfg/cli.cpp:29: ./openvpn3-core/openvpn/tun/linux/client/tunsetup.hpp: In member function ‘int openvpn::TunLinuxSetup::Setup<TUNMETHODS>::establish(const openvpn::TunBuilderCapture&, openvpn::TunBuilderSetup::Config*, openvpn::Stop*, std::ostream&)’: ./openvpn3-core/openvpn/tun/linux/client/tunsetup.hpp:145:94: error: there are no arguments to ‘errinfo’ that depend on a template parameter, so a declaration of ‘errinfo’ must be available [-fpermissive] OPENVPN_THROW(tun_open_error, "error opening tun device " << node <<": " << errinfo(errno)); ^ ./openvpn3-core/openvpn/common/exception.hpp:130:18: note: in definition of macro ‘OPENVPN_THROW’ _ovpn_exc << stuff; \ ^ By including the asioerr.hpp header file in openvpn/tun/linux/client/tunsetup.hpp, this failure is resolved. Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
parent
d54b742910
commit
0833eb1f76
@ -39,6 +39,7 @@
|
||||
#include <openvpn/common/process.hpp>
|
||||
#include <openvpn/common/action.hpp>
|
||||
#include <openvpn/addr/route.hpp>
|
||||
#include <openvpn/asio/asioerr.hpp>
|
||||
#include <openvpn/tun/builder/capture.hpp>
|
||||
#include <openvpn/tun/builder/setup.hpp>
|
||||
#include <openvpn/tun/client/tunbase.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user