diff --git a/libretroshare/src/util/rsnet.cc b/libretroshare/src/util/rsnet.cc index 3068bcef3..8f07d16c4 100644 --- a/libretroshare/src/util/rsnet.cc +++ b/libretroshare/src/util/rsnet.cc @@ -75,7 +75,7 @@ void sockaddr_clear(struct sockaddr_in *addr) bool rsGetHostByName(const std::string& hostname, in_addr& returned_addr) { -#ifdef WINDOWS_SYS +#if defined(WINDOWS_SYS) || defined(__APPLE__) hostent *result = gethostbyname(hostname.c_str()) ; #else RsTemporaryMemory mem(8192) ;