]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix Linux build when libnl-devel isn't available
authorLaine Stump <laine@redhat.com>
Wed, 30 Sep 2020 20:36:52 +0000 (16:36 -0400)
committerLaine Stump <laine@redhat.com>
Thu, 1 Oct 2020 18:02:34 +0000 (14:02 -0400)
commit717615856c11ad54832d9822bb4ab6b10778674e
tree3f23f5f6e15ae90c7f4827776069b435cd548043
parent7556ab139fd2e503ac26ee232ab273f1ec027c21
util: fix Linux build when libnl-devel isn't available

There was one stray bit of code in virnetdev.c that required libnl to
build, but wasn't qualified by defined(WITH_LIBNL). Adding that, plus
putting a similar check around a static function only used by that
aforementioned code, makes libvirt build properly without libnl3-devel
installed.

How useful it is in that state is a separate issue :-)

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdev.c