diff mbox series

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

Message ID 20240306145055.31744-1-mariusz.tkaczyk@linux.intel.com (mailing list archive)
State Accepted
Headers show
Series udev.c: Do not require libudev.h if DNO_LIBUDEV | expand

Commit Message

Mariusz Tkaczyk March 6, 2024, 2:50 p.m. UTC
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>
---
 udev.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Mariusz Tkaczyk March 12, 2024, 12:37 p.m. UTC | #1
On Wed,  6 Mar 2024 15:50:55 +0100
Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> wrote:

> 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>
> ---
No comments..
Applied! 

Thanks,
Mariusz
diff mbox series

Patch

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;