mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
build: remove check for MACVLAN_MODE_PASSTHRU
macvlan support was added to the Linux kernel in 2.6.33, but MACVLAN_MODE_PASSTHRU wasn't added until 2.6.38, so a workaround had been put in place to define that constant on those few systems where it was missing. It's useful like was probably 6 months at most, but it's been there for over 10 years. Signed-off-by: Laine Stump <laine@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
a79e7639da
commit
4fd7c74e44
@ -1172,10 +1172,6 @@ if not get_option('macvtap').disabled()
|
|||||||
endif
|
endif
|
||||||
if use_macvtap
|
if use_macvtap
|
||||||
conf.set('WITH_MACVTAP', 1)
|
conf.set('WITH_MACVTAP', 1)
|
||||||
|
|
||||||
if cc.has_header_symbol('linux/if_link.h', 'MACVLAN_MODE_PASSTHRU')
|
|
||||||
conf.set('WITH_DECL_MACVLAN_MODE_PASSTHRU', 1)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
netcf_version = '0.1.8'
|
netcf_version = '0.1.8'
|
||||||
|
@ -47,11 +47,6 @@ VIR_ENUM_IMPL(virNetDevMacVLanMode,
|
|||||||
# include <linux/if_tun.h>
|
# include <linux/if_tun.h>
|
||||||
# include <math.h>
|
# include <math.h>
|
||||||
|
|
||||||
/* Older kernels lacked this enum value. */
|
|
||||||
# if !WITH_DECL_MACVLAN_MODE_PASSTHRU
|
|
||||||
# define MACVLAN_MODE_PASSTHRU 8
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# include "viralloc.h"
|
# include "viralloc.h"
|
||||||
# include "virlog.h"
|
# include "virlog.h"
|
||||||
# include "viruuid.h"
|
# include "viruuid.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user