diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp index 59613da11..86e96f338 100644 --- a/node/EthernetTap.cpp +++ b/node/EthernetTap.cpp @@ -130,6 +130,7 @@ static const _CommandFinder UNIX_COMMANDS; #include #include #include +#include #endif // __LINUX__ #ifdef __APPLE__ @@ -569,7 +570,6 @@ bool EthernetTap::removeIP(const InetAddress &ip) return false; } -#ifdef __APPLE__ std::set EthernetTap::ips() const { struct ifaddrs *ifa = (struct ifaddrs *)0; @@ -606,11 +606,6 @@ std::set EthernetTap::ips() const return r; } -#else -std::set EthernetTap::ips() const -{ -} -#endif void EthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len) {