]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: fix when HAVE_CLOCK_GETTIME is set
authorNicolas Caramelli <caramelli.devel@gmail.com>
Fri, 29 Apr 2022 16:16:36 +0000 (18:16 +0200)
committerNicolas Caramelli <caramelli.devel@gmail.com>
Fri, 29 Apr 2022 16:16:36 +0000 (18:16 +0200)
Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
meson.build

index 2f6a7a47a96c190385c76bf3209aa41dd32f6973..df5ecb76f6bd3333084a3fe6b46ccc36f86acd9d 100644 (file)
@@ -599,7 +599,7 @@ if not have
   have = cc.has_function('clock_gettime',
                          dependencies : realtime_libs)
 endif
-conf.set('HAVE_CLOCK_GETTIME', have_dirfd ? 1 : false)
+conf.set('HAVE_CLOCK_GETTIME', have ? 1 : false)
 
 thread_libs = dependency('threads')