From 5b4d1a68b2ecde2b089e3ce803bee6a35b39bcf2 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 30 Nov 2023 18:06:31 +0100 Subject: [PATCH] meson: Stop looking for udevadm at build time We only use it at runtime, not during the build process. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- meson.build | 1 - src/util/virutil.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 5fb827cca8..fdff8dcb97 100644 --- a/meson.build +++ b/meson.build @@ -820,7 +820,6 @@ optional_programs = [ 'rmmod', 'scrub', 'tc', - 'udevadm', ] foreach name : optional_programs diff --git a/src/util/virutil.c b/src/util/virutil.c index c90d0be836..17d65ad834 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -62,6 +62,8 @@ G_STATIC_ASSERT(sizeof(gid_t) <= sizeof(unsigned int) && VIR_LOG_INIT("util.util"); +#define UDEVADM "udevadm" + #ifndef WIN32 int virSetInherit(int fd, bool inherit)