From: Thomas Huth Date: Tue, 18 Jan 2022 17:05:48 +0000 (+0100) Subject: meson.build: Use a function from libfdt 1.5.1 for the library check X-Git-Tag: v7.0.0-rc0~73^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de47b0ff40cae050a1ab674d7f4f097c12c527c6;p=thirdparty%2Fqemu.git meson.build: Use a function from libfdt 1.5.1 for the library check The fdt version test in meson.build uses a function from libfdt v1.4.7, but we require version 1.5.1 nowadays. Thus use a function that has been introduced in that version instead. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/822 Signed-off-by: Thomas Huth Reviewed-by: Alistair Francis Reviewed-by: David Gibson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220118170548.97288-1-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- diff --git a/meson.build b/meson.build index 833fd6bc4ca..4429fd2041f 100644 --- a/meson.build +++ b/meson.build @@ -2279,7 +2279,7 @@ if have_system if fdt.found() and cc.links(''' #include #include - int main(void) { fdt_check_full(NULL, 0); return 0; }''', + int main(void) { fdt_find_max_phandle(NULL, NULL); return 0; }''', dependencies: fdt) fdt_opt = 'system' elif fdt_opt == 'system'