mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 08:29:26 -05:00
fixed compilation for MacOS
This commit is contained in:
parent
4a4625e2bf
commit
1cf9c34207
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user