fixed compilation for MacOS

This commit is contained in:
csoler 2015-10-08 19:48:22 -04:00
parent 4a4625e2bf
commit 1cf9c34207

View File

@ -75,7 +75,7 @@ void sockaddr_clear(struct sockaddr_in *addr)
bool rsGetHostByName(const std::string& hostname, in_addr& returned_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()) ; hostent *result = gethostbyname(hostname.c_str()) ;
#else #else
RsTemporaryMemory mem(8192) ; RsTemporaryMemory mem(8192) ;