From: Roman Bogorodskiy Date: Sat, 8 Aug 2020 09:16:16 +0000 (+0400) Subject: meson: fix link_addr(3) check X-Git-Tag: v6.7.0-rc1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7ccff027ee2f705ea2f7f01803b8f5dcb0fe7b3;p=thirdparty%2Flibvirt.git meson: fix link_addr(3) check Add missing prerequisite headers for checking link_addr(3) in net/if_dl.h. Signed-off-by: Roman Bogorodskiy Reviewed-by: Pavel Hrdina --- diff --git a/meson.build b/meson.build index 19b4795527..a1a719111c 100644 --- a/meson.build +++ b/meson.build @@ -770,7 +770,7 @@ symbols = [ [ 'linux/if_vlan.h', 'GET_VLAN_VID_CMD' ], # Check for BSD approach for setting MAC addr - [ 'net/if_dl.h', 'link_addr' ], + [ 'net/if_dl.h', 'link_addr', '#include \n#include ' ], ] if host_machine.system() == 'linux' @@ -791,7 +791,7 @@ if host_machine.system() == 'linux' endif foreach symbol : symbols - if cc.has_header_symbol(symbol[0], symbol[1], args: '-D_GNU_SOURCE') + if cc.has_header_symbol(symbol[0], symbol[1], args: '-D_GNU_SOURCE', prefix: symbol.get(2, '')) conf.set('HAVE_DECL_@0@'.format(symbol[1].to_upper()), 1) endif endforeach