]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix compilation on systems missing libnl and new includes
authorStefan Berger <stefanb@us.ibm.com>
Thu, 23 Jun 2011 15:54:11 +0000 (11:54 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 23 Jun 2011 15:54:11 +0000 (11:54 -0400)
commitf7ed6936668224e2120ba2523274aae77e5244b2
tree7f821a28e7badcbe3397707e72ce39ae602318f3
parent20991b937bb239473ca0e8f9a28b04d65a2b4bcb
build: fix compilation on systems missing libnl and new includes

This patch fixes the compilation of netlink.c and interface.c on those
systems missing either libnl or that have an older linux/if_link.h
include file not supporting macvtap or VF_PORTS.

WITH_MACVTAP is '1' if newer include files were detected, '0' otherwise.

IFLA_PORT_MAX is defined in linux/if_link.h if yet more functionality is
supported.
src/util/interface.c
src/util/netlink.c
src/util/netlink.h