Skip to contentSkip to conversation

udev.c: Do not require libudev.h if DNO_LIBUDEV

PATCH In review Mariusz Tkaczyk 1 participant 2 messages Mar 6, 2024 – Mar 12, 2024 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev.c: Do not require libudev.h if DNO_LIBUDEV

libudev may not be presented at all, do not require it.

---
 udev.c | 3 +++
 1 file changed, 3 insertions(+)
udev.c +3 -0
index bc4722b0ef94..066e6ab1c292 100644
@@ -26,7 +26,10 @@
 #include	<signal.h>
 #include	<limits.h>
 #include	<syslog.h>
+
+#ifndef NO_LIBUDEV
 #include	<libudev.h>
+#endif
 
 static char *unblock_path;
 
Signature · 1 line
2.35.3