]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix array issue
authorRosen Penev <rosenp@gmail.com>
Fri, 28 Oct 2022 23:47:57 +0000 (16:47 -0700)
committerRosen Penev <rosenp@gmail.com>
Sat, 29 Oct 2022 00:04:46 +0000 (17:04 -0700)
+= cannot be used with a dep. Found with muon's analyze:

meson.build:643:5: error expected type dict|disabler|int|list|str, got
dep

Signed-off-by: Rosen Penev <rosenp@gmail.com>
meson.build

index ceb6b60a5e266c30e1d131388ac4c2f92d028282..5e920e6e5380fcdad51d16f6d8552cda3e0d065d 100644 (file)
@@ -636,7 +636,7 @@ thread_libs = dependency('threads')
 
 have = cc.has_function('timer_create')
 if not have
-  realtime_libs = cc.find_library('rt', required : true)
+  realtime_libs = [cc.find_library('rt', required : true)]
   have = cc.has_function('timer_create',
                          dependencies : realtime_libs)
   if not have