util-linux: use meson to build
[openwrt/staging/chunkeey.git] / package / utils / util-linux / patches / 110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch
1 From e51565b653cf09985df57cb7254b16d5af5df223 Mon Sep 17 00:00:00 2001
2 From: Nicolas Caramelli <caramelli.devel@gmail.com>
3 Date: Fri, 29 Apr 2022 18:16:36 +0200
4 Subject: [PATCH] meson: fix when HAVE_CLOCK_GETTIME is set
5
6 Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
7 ---
8 meson.build | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/meson.build
12 +++ b/meson.build
13 @@ -602,7 +602,7 @@ if not have
14 have = cc.has_function('clock_gettime',
15 dependencies : realtime_libs)
16 endif
17 -conf.set('HAVE_CLOCK_GETTIME', have_dirfd ? 1 : false)
18 +conf.set('HAVE_CLOCK_GETTIME', have ? 1 : false)
19
20 thread_libs = dependency('threads')
21