From: Eli Schwartz Date: Fri, 24 Dec 2021 00:12:36 +0000 (-0500) Subject: meson: fix incorrect argument call to has_header() X-Git-Tag: v2.0-rc0~14^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e6e4eaee79e0c21e3bde78752b313ce1a638799;p=users%2Fsagi%2Fnvme-cli.git meson: fix incorrect argument call to has_header() It only accepts a string, but an array of strings was passed. Due to meson internal implementation details, arguments are sometimes flattened and this works anyway. However, muon choked on it and errored out. --- diff --git a/meson.build b/meson.build index b2904bba..8417a65d 100644 --- a/meson.build +++ b/meson.build @@ -43,7 +43,7 @@ if json_c.found() endif # Check for libhugetlbfs availability -if cc.has_header(['hugetlbfs.h']) +if cc.has_header('hugetlbfs.h') libhugetlbfs_dep = cc.find_library('hugetlbfs', required : false) have_libhugetlbfs = libhugetlbfs_dep.found()