Fix for getifaddrs on Haiku

This commit is contained in:
Begasus 2024-02-08 11:52:37 +01:00
parent 2818dd3151
commit b2ae1d66f5
1 changed files with 1 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ inline bool bind_ip_address(socket_t sock, const char *host) {
} }
inline std::string if2ip(const std::string &ifn) { inline std::string if2ip(const std::string &ifn) {
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__HAIKU__)
struct ifaddrs *ifap; struct ifaddrs *ifap;
getifaddrs(&ifap); getifaddrs(&ifap);
for (auto ifa = ifap; ifa; ifa = ifa->ifa_next) { for (auto ifa = ifap; ifa; ifa = ifa->ifa_next) {