mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
nss: Remove RES_USE_INET6 usage
The recent deprecation in glibc (commit b76e065991ec) means the
module will fail to build entirely:
nss/libvirt_nss.c: In function '_nss_libvirt_gethostbyname_r':
nss/libvirt_nss.c:363:13: error: RES_USE_INET6 is deprecated [-Werror]
int af = ((_res.options & RES_USE_INET6) ? AF_INET6 : AF_INET);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This resolver option was removed shortly after being introduced,
and application using it are already broken anyway.
(cherry picked from commit 5fff7b99db)
This commit is contained in:
1 parent
d2ce076f52
commit
a72540f733
1 file changed
+1
-3
@@ -237,9 +237,7 @@ _nss_libvirt_gethostbyname_r(const char *name, struct hostent *result,
|
||||
char *buffer, size_t buflen, int *errnop,
|
||||
int *herrnop)
|
||||
{
|
||||
int af = ((_res.options & RES_USE_INET6) ? AF_INET6 : AF_INET);
|
||||
|
||||
return _nss_libvirt_gethostbyname3_r(name, af, result, buffer, buflen,
|
||||
return _nss_libvirt_gethostbyname3_r(name, AF_INET, result, buffer, buflen,
|
||||
errnop, herrnop, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user