X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=package%2Futils%2Futil-linux%2Fpatches%2F110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch;fp=package%2Futils%2Futil-linux%2Fpatches%2F110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch;h=bba8baf5abab3f4c9a3a115a51b269f17edff0f0;hb=28cec438071c6a5ce90ed4606df7cbe6ad8a100c;hp=0000000000000000000000000000000000000000;hpb=d93aae1d675caf47fbec684d12e39fb4090527d5;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/package/utils/util-linux/patches/110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch b/package/utils/util-linux/patches/110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch new file mode 100644 index 0000000000..bba8baf5ab --- /dev/null +++ b/package/utils/util-linux/patches/110-meson-fix-when-HAVE_CLOCK_GETTIME-is-set.patch @@ -0,0 +1,21 @@ +From e51565b653cf09985df57cb7254b16d5af5df223 Mon Sep 17 00:00:00 2001 +From: Nicolas Caramelli +Date: Fri, 29 Apr 2022 18:16:36 +0200 +Subject: [PATCH] meson: fix when HAVE_CLOCK_GETTIME is set + +Signed-off-by: Nicolas Caramelli +--- + meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/meson.build ++++ b/meson.build +@@ -602,7 +602,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') +