From 7c1b224f673c59b1d21297308467ac521287d6a5 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 4 Dec 2018 23:45:08 +0000 Subject: [PATCH] Minor build fixes --- include/llarp/handlers/tun.hpp | 10 +++++----- llarp/ev.hpp | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/include/llarp/handlers/tun.hpp b/include/llarp/handlers/tun.hpp index 7c5e3bcd9..70d184550 100644 --- a/include/llarp/handlers/tun.hpp +++ b/include/llarp/handlers/tun.hpp @@ -24,10 +24,10 @@ namespace llarp ~TunEndpoint(); virtual bool - SetOption(const std::string& k, const std::string& v); + SetOption(const std::string& k, const std::string& v) override; virtual void - Tick(llarp_time_t now); + Tick(llarp_time_t now) override; void TickTun(llarp_time_t now); @@ -36,7 +36,7 @@ namespace llarp MapAddress(const service::Address& remote, huint32_t ip, bool SNode); bool - Start(); + Start() override; bool IsSNode() const; @@ -47,7 +47,7 @@ namespace llarp /// overrides Endpoint bool - SetupNetworking(); + SetupNetworking() override; /// overrides Endpoint /// handle inbound traffic @@ -69,7 +69,7 @@ namespace llarp #ifndef WIN32 /// overrides Endpoint bool - IsolationFailed() + IsolationFailed() override { m_TunSetupResult.set_value(false); return false; diff --git a/llarp/ev.hpp b/llarp/ev.hpp index afdf94411..62a4bfcca 100644 --- a/llarp/ev.hpp +++ b/llarp/ev.hpp @@ -25,6 +25,12 @@ struct asio_evt_pkt size_t sz; // if this doesn't match what is in the packet, note the error }; #else + +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || (__APPLE__ && __MACH__) +#include +#endif + #include #endif