From 8c007de79d8caf6a734f06be3ab235e684ae9630 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Wed, 6 Mar 2024 13:00:04 +0100 Subject: [PATCH] client: Explicitely use int as socket type in SWIG For some reason SWIG doesn't seem to pick this up automatically from the typedefs. Signed-off-by: Frank Lichtenheld --- client/ovpncli.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/ovpncli.i b/client/ovpncli.i index f1309062..c213bb65 100644 --- a/client/ovpncli.i +++ b/client/ovpncli.i @@ -12,6 +12,12 @@ #include "ovpncli.hpp" %} +#ifndef OPENVPN_PLATFORM_WIN +// simplify interface, not picked up automatically +%apply int { openvpn_io::detail::socket_type }; +%apply int { asio::detail::socket_type }; +#endif + // ignore these ClientAPI::OpenVPNClient bases %ignore openvpn::ClientAPI::LogReceiver; %ignore openvpn::ExternalTun::Factory;