mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35: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
|
||||
|
||||
# Check for BSD approach for bridge management
|
||||
if (cc.has_header_symbol('net/if_bridgevar.h', 'BRDGSFD') and
|
||||
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGADD') and
|
||||
cc.has_header_symbol('net/if_bridgevar.h', 'BRDGDEL'))
|
||||
brd_required_headers = '''#include <stdint.h>
|
||||
#include <net/if.h>
|
||||
#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)
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user