]> 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)
committerCole Robinson <crobinso@redhat.com>
Fri, 4 Aug 2017 20:07:04 +0000 (16:07 -0400)
commita72540f733209a50dcb00bdc96329f720258c6e5
tree03a30cac349a0a748b732a82c39ea449775457da
parentd2ce076f52cb659cb62fa304b2c1dc11df9182f9
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 5fff7b99db42376e00dbc7af13f08ab27c8256e7)
tools/nss/libvirt_nss.c