We only use it at runtime, not during the build process.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
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)
--
2.43.0