Minor build fixes

pull/102/head
Michael 6 years ago
parent 1df153848f
commit 7c1b224f67
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -24,10 +24,10 @@ namespace llarp
~TunEndpoint(); ~TunEndpoint();
virtual bool virtual bool
SetOption(const std::string& k, const std::string& v); SetOption(const std::string& k, const std::string& v) override;
virtual void virtual void
Tick(llarp_time_t now); Tick(llarp_time_t now) override;
void void
TickTun(llarp_time_t now); TickTun(llarp_time_t now);
@ -36,7 +36,7 @@ namespace llarp
MapAddress(const service::Address& remote, huint32_t ip, bool SNode); MapAddress(const service::Address& remote, huint32_t ip, bool SNode);
bool bool
Start(); Start() override;
bool bool
IsSNode() const; IsSNode() const;
@ -47,7 +47,7 @@ namespace llarp
/// overrides Endpoint /// overrides Endpoint
bool bool
SetupNetworking(); SetupNetworking() override;
/// overrides Endpoint /// overrides Endpoint
/// handle inbound traffic /// handle inbound traffic
@ -69,7 +69,7 @@ namespace llarp
#ifndef WIN32 #ifndef WIN32
/// overrides Endpoint /// overrides Endpoint
bool bool
IsolationFailed() IsolationFailed() override
{ {
m_TunSetupResult.set_value(false); m_TunSetupResult.set_value(false);
return false; return false;

@ -25,6 +25,12 @@ struct asio_evt_pkt
size_t sz; // if this doesn't match what is in the packet, note the error size_t sz; // if this doesn't match what is in the packet, note the error
}; };
#else #else
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|| (__APPLE__ && __MACH__)
#include <sys/event.h>
#endif
#include <sys/un.h> #include <sys/un.h>
#endif #endif

Loading…
Cancel
Save