Skip to content

Commit

Permalink
Merge pull request #1048 from Begasus/haiku
Browse files Browse the repository at this point in the history
Haiku
  • Loading branch information
mgautierfr authored Feb 8, 2024
2 parents 09eec82 + b2ae1d6 commit e625c25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/tools/networkTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
#include <netdb.h>
#endif

#ifdef __HAIKU__
#include <sys/sockio.h>
#endif

size_t write_callback_to_iss(char* ptr, size_t size, size_t nmemb, void* userdata)
{
auto str = static_cast<std::stringstream*>(userdata);
Expand Down
2 changes: 1 addition & 1 deletion test/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e625c25

Please sign in to comment.