From b2ae1d66f52fab1fa488e7fe2e063ef9689254fd Mon Sep 17 00:00:00 2001 From: Begasus Date: Thu, 8 Feb 2024 11:52:37 +0100 Subject: [PATCH] Fix for getifaddrs on Haiku --- test/httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/httplib.h b/test/httplib.h index 57b84ea81..ca43408d5 100644 --- a/test/httplib.h +++ b/test/httplib.h @@ -1516,7 +1516,7 @@ inline bool bind_ip_address(socket_t sock, const char *host) { } inline std::string if2ip(const std::string &ifn) { -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(__HAIKU__) struct ifaddrs *ifap; getifaddrs(&ifap); for (auto ifa = ifap; ifa; ifa = ifa->ifa_next) {