]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nss: Remove RES_USE_INET6 usage
authorAndrea Bolognani <abologna@redhat.com>
Wed, 18 Jan 2017 17:30:18 +0000 (18:30 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 19 Jan 2017 12:46:20 +0000 (13:46 +0100)
commit5fff7b99db42376e00dbc7af13f08ab27c8256e7
treec63bd6b5936a093e0548c884b40b696a9b5abc31
parent2e045a4f9bf2757199c0997b9842d8dd8510459f
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.
tools/nss/libvirt_nss.c