mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
ircd::net::dns: Allow undefined symbol ignored null by libnss_db.
This commit is contained in:
parent
830a5b9d2a
commit
e70d26b23e
1 changed files with 7 additions and 0 deletions
|
@ -62,7 +62,9 @@ ircd::net::dns::init::service_init()
|
|||
|
||||
if(netdb_enable)
|
||||
{
|
||||
|
||||
#ifdef HAVE_NETDB_H
|
||||
const mods::ldso::exceptions enable {false};
|
||||
::setservent(stay_open);
|
||||
netdb_ready = true;
|
||||
#endif
|
||||
|
@ -77,6 +79,7 @@ noexcept
|
|||
if(std::exchange(netdb_ready, false))
|
||||
{
|
||||
#ifdef HAVE_NETDB_H
|
||||
const mods::ldso::exceptions enable {false};
|
||||
::endservent();
|
||||
#endif
|
||||
}
|
||||
|
@ -111,6 +114,8 @@ try
|
|||
{
|
||||
thread_local struct ::servent res, *ent {nullptr};
|
||||
thread_local char _name[32], _prot[32], buf[2048];
|
||||
|
||||
const mods::ldso::exceptions enable {false};
|
||||
const prof::syscall_usage_warning timer
|
||||
{
|
||||
"net::dns::service_port(%s)", name
|
||||
|
@ -206,6 +211,8 @@ try
|
|||
|
||||
thread_local struct ::servent res, *ent {nullptr};
|
||||
thread_local char _prot[32], buf[2048];
|
||||
|
||||
const mods::ldso::exceptions enable {false};
|
||||
const prof::syscall_usage_warning timer
|
||||
{
|
||||
"net::dns::service_name(%u)", port
|
||||
|
|
Loading…
Reference in a new issue