]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
meson: fix incorrect argument call to has_header()
authorEli Schwartz <eschwartz93@gmail.com>
Fri, 24 Dec 2021 00:12:36 +0000 (19:12 -0500)
committerEli Schwartz <eschwartz93@gmail.com>
Fri, 24 Dec 2021 00:12:36 +0000 (19:12 -0500)
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.

meson.build

index b2904bbaf630af715f14095646afd010fe3dcde6..8417a65d247998dcfc87e53883331cd054953d36 100644 (file)
@@ -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()