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:
Roman Bogorodskiy 2020-08-08 13:16:16 +04:00
parent f7ccff027e
commit 154ecac509

View File

@ -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