aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-03-06 15:50:55 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-03-12 13:23:34 +0100
commit1750758c7ff526e3560433f6235e5cfa35cf646a (patch)
treed5a094109da79cd140ec3b2daadee94653d200be
parent9c63130e8974033969569fb9d0b373d1d1478cf7 (diff)
downloadmdadm-1750758c7ff526e3560433f6235e5cfa35cf646a.tar.gz
udev.c: Do not require libudev.h if DNO_LIBUDEV
libudev may not be presented at all, do not require it. Reported-by: Boian Bonev <bbonev@ipacct.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
-rw-r--r--udev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev.c b/udev.c
index bc4722b0..066e6ab1 100644
--- a/udev.c
+++ b/udev.c
@@ -26,7 +26,10 @@
#include <signal.h>
#include <limits.h>
#include <syslog.h>
+
+#ifndef NO_LIBUDEV
#include <libudev.h>
+#endif
static char *unblock_path;