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