macvtap build detection fix

* configure.ac: fix the header test used for macvtap availability
  detection
This commit is contained in:
Stefan Berger 2010-03-09 14:14:48 +01:00 committed by Daniel Veillard
parent 1c36d0682a
commit d3b6fe5f9c

View File

@ -1849,7 +1849,8 @@ AC_ARG_WITH([macvtap],
[with_macvtap=check])
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; ],
[ with_macvtap=yes ],
[ if test "$with_macvtap" = "yes" ; then