[PATCH] udev.c: Do not require libudev.h if DNO_LIBUDEV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Reported-by: Boian Bonev <bbonev@xxxxxxxxxx>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@xxxxxxxxxxxxxxx>
---
 udev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/udev.c b/udev.c
index bc4722b0ef94..066e6ab1c292 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;
 
-- 
2.35.3





[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux