IOS: Use host nameserver on more BSDs
This commit is contained in:
parent
a2530e3b93
commit
430c58cf27
|
@ -605,6 +605,7 @@ if (APPLE)
|
||||||
${CORESERV_LIBRARY}
|
${CORESERV_LIBRARY}
|
||||||
${IOB_LIBRARY}
|
${IOB_LIBRARY}
|
||||||
${IOK_LIBRARY}
|
${IOK_LIBRARY}
|
||||||
|
resolv
|
||||||
)
|
)
|
||||||
elseif (ANDROID)
|
elseif (ANDROID)
|
||||||
target_link_libraries(core
|
target_link_libraries(core
|
||||||
|
|
|
@ -864,7 +864,8 @@ IPCReply NetIPTopDevice::HandleGetInterfaceOptRequest(const IOCtlVRequest& reque
|
||||||
FREE(AdapterAddresses);
|
FREE(AdapterAddresses);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(__linux__) && !defined(__ANDROID__)
|
#elif (defined(__linux__) && !defined(ANDROID)) || defined(__APPLE__) || defined(__FreeBSD__) || \
|
||||||
|
defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
|
||||||
if (!Core::WantsDeterminism())
|
if (!Core::WantsDeterminism())
|
||||||
{
|
{
|
||||||
if (res_init() == 0)
|
if (res_init() == 0)
|
||||||
|
|
Loading…
Reference in New Issue