mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 04:25:19 +00:00
Revert "build: fix configure detection of if_bridge.h on RHEL 6"
This reverts commit2df8d99138
. The change breaks configure on any recent Fedora platform (cherry picked from commit43cee32ff5
)
This commit is contained in:
parent
6e02088208
commit
80d05b9a83
@ -997,14 +997,7 @@ if test "$with_linux" = "yes"; then
|
||||
if test "$with_qemu" = "yes" || test "$with_lxc" = "yes" ; then
|
||||
AC_CHECK_HEADERS([linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h],,
|
||||
[AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support])],
|
||||
[[/* The kernel folks broke their headers when used with particular
|
||||
* glibc versions; although the structs are ABI compatible, the
|
||||
* C type system doesn't like struct redefinitions. We work around
|
||||
* the problem here in the same manner as in virnetdevbridge.c. */
|
||||
#include <netinet/in.h>
|
||||
#define in6_addr in6_addr_
|
||||
#define sockaddr_in6 sockaddr_in6_
|
||||
#define ipv6_mreq ipv6_mreq_
|
||||
[[#include <netinet/in.h>
|
||||
]])
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user