mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
macvtap build detection fix
* configure.ac: fix the header test used for macvtap availability detection
This commit is contained in:
parent
1c36d0682a
commit
d3b6fe5f9c
@ -1849,7 +1849,8 @@ AC_ARG_WITH([macvtap],
|
|||||||
[with_macvtap=check])
|
[with_macvtap=check])
|
||||||
|
|
||||||
if test "$with_macvtap" != "no" ; then
|
if test "$with_macvtap" != "no" ; then
|
||||||
AC_TRY_COMPILE([ #include <linux/if_link.h> ],
|
AC_TRY_COMPILE([ #include <sys/socket.h>
|
||||||
|
#include <linux/rtnetlink.h> ],
|
||||||
[ int x = MACVLAN_MODE_BRIDGE; ],
|
[ int x = MACVLAN_MODE_BRIDGE; ],
|
||||||
[ with_macvtap=yes ],
|
[ with_macvtap=yes ],
|
||||||
[ if test "$with_macvtap" = "yes" ; then
|
[ if test "$with_macvtap" = "yes" ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user