diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-06 15:50:55 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-12 13:23:34 +0100 |
commit | 1750758c7ff526e3560433f6235e5cfa35cf646a (patch) | |
tree | d5a094109da79cd140ec3b2daadee94653d200be | |
parent | 9c63130e8974033969569fb9d0b373d1d1478cf7 (diff) | |
download | mdadm-test-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -26,7 +26,10 @@ #include <signal.h> #include <limits.h> #include <syslog.h> + +#ifndef NO_LIBUDEV #include <libudev.h> +#endif static char *unblock_path; |