]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdev: fix build with old kernel
authorPavel Hrdina <phrdina@redhat.com>
Tue, 10 Mar 2015 16:00:15 +0000 (17:00 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 12 Mar 2015 16:48:02 +0000 (17:48 +0100)
commit48461b169e6657df6d12fc53d3bd13ce01d69bfb
tree7267a371d591998f185ec10a7bca67e6b362a42f
parenteaf1539d2abd12a81e62b13a464266586105fdc5
virnetdev: fix build with old kernel

Commit c9027d8f added a detection of NIC HW features, but some of them
are not available in old kernel.  Very old kernels lack enum
ethtool_flags and even if this enum is present, not all values are
available for all kernels.  To be sure that we have everything in kernel
that we need, we must check for existence of most of that flags, because
only few of them were defined at first.

Also to successfully build libvirt with older kernel we need to include
<linux/types.h> before <linux/ethtool.h> to have __u32 and friends
defined.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
configure.ac
src/util/virnetdev.c