mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02: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)
|
if(netdb_enable)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
|
const mods::ldso::exceptions enable {false};
|
||||||
::setservent(stay_open);
|
::setservent(stay_open);
|
||||||
netdb_ready = true;
|
netdb_ready = true;
|
||||||
#endif
|
#endif
|
||||||
|
@ -77,6 +79,7 @@ noexcept
|
||||||
if(std::exchange(netdb_ready, false))
|
if(std::exchange(netdb_ready, false))
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
|
const mods::ldso::exceptions enable {false};
|
||||||
::endservent();
|
::endservent();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -111,6 +114,8 @@ try
|
||||||
{
|
{
|
||||||
thread_local struct ::servent res, *ent {nullptr};
|
thread_local struct ::servent res, *ent {nullptr};
|
||||||
thread_local char _name[32], _prot[32], buf[2048];
|
thread_local char _name[32], _prot[32], buf[2048];
|
||||||
|
|
||||||
|
const mods::ldso::exceptions enable {false};
|
||||||
const prof::syscall_usage_warning timer
|
const prof::syscall_usage_warning timer
|
||||||
{
|
{
|
||||||
"net::dns::service_port(%s)", name
|
"net::dns::service_port(%s)", name
|
||||||
|
@ -206,6 +211,8 @@ try
|
||||||
|
|
||||||
thread_local struct ::servent res, *ent {nullptr};
|
thread_local struct ::servent res, *ent {nullptr};
|
||||||
thread_local char _prot[32], buf[2048];
|
thread_local char _prot[32], buf[2048];
|
||||||
|
|
||||||
|
const mods::ldso::exceptions enable {false};
|
||||||
const prof::syscall_usage_warning timer
|
const prof::syscall_usage_warning timer
|
||||||
{
|
{
|
||||||
"net::dns::service_name(%u)", port
|
"net::dns::service_name(%u)", port
|
||||||
|
|
Loading…
Reference in a new issue