From 0833eb1f76b686203baa614ade3b1b80b921427e Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 3 Jun 2019 21:03:10 +0200 Subject: [PATCH] linux/tunsetup: Fix missing asio/errinfo declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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::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 --- openvpn/tun/linux/client/tunsetup.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/openvpn/tun/linux/client/tunsetup.hpp b/openvpn/tun/linux/client/tunsetup.hpp index 945e3b63..0ed4edbf 100644 --- a/openvpn/tun/linux/client/tunsetup.hpp +++ b/openvpn/tun/linux/client/tunsetup.hpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include