mirror of https://github.com/kiwix/libkiwix.git
commit
e625c25ef1
|
@ -43,6 +43,10 @@
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
#include <sys/sockio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t write_callback_to_iss(char* ptr, size_t size, size_t nmemb, void* userdata)
|
size_t write_callback_to_iss(char* ptr, size_t size, size_t nmemb, void* userdata)
|
||||||
{
|
{
|
||||||
auto str = static_cast<std::stringstream*>(userdata);
|
auto str = static_cast<std::stringstream*>(userdata);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue