mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
meson: fix BSD bridge management routines check
Add missing prerequisite headers for checking BRDGSFD, BRDGADD, BRDGDEL in net/if_bridgevar.h. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
f7ccff027e
commit
154ecac509
@ -797,9 +797,12 @@ foreach symbol : symbols
|
|||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# Check for BSD approach for bridge management
|
# Check for BSD approach for bridge management
|
||||||
if (cc.has_header_symbol('net/if_bridgevar.h', 'BRDGSFD') and
|
brd_required_headers = '''#include <stdint.h>
|
||||||
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGADD') and
|
#include <net/if.h>
|
||||||
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGDEL'))
|
#include <net/ethernet.h>'''
|
||||||
|
if (cc.has_header_symbol('net/if_bridgevar.h', 'BRDGSFD', prefix: brd_required_headers) and
|
||||||
|
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGADD', prefix: brd_required_headers) and
|
||||||
|
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGDEL', prefix: brd_required_headers))
|
||||||
conf.set('HAVE_BSD_BRIDGE_MGMT', 1)
|
conf.set('HAVE_BSD_BRIDGE_MGMT', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user