linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] udev.c: Do not require libudev.h if DNO_LIBUDEV
@ 2024-03-06 14:50 Mariusz Tkaczyk
  2024-03-12 12:37 ` Mariusz Tkaczyk
  0 siblings, 1 reply; 2+ messages in thread
From: Mariusz Tkaczyk @ 2024-03-06 14:50 UTC (permalink / raw)
  To: jes; +Cc: linux-raid, Mariusz Tkaczyk, Boian Bonev

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(+)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-12 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-06 14:50 [PATCH] udev.c: Do not require libudev.h if DNO_LIBUDEV Mariusz Tkaczyk
2024-03-12 12:37 ` Mariusz Tkaczyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).