b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From 1750758c7ff526e3560433f6235e5cfa35cf646a Mon Sep 17 00:00:00 2001 |
| 2 | From: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> |
| 3 | Date: Wed, 6 Mar 2024 15:50:55 +0100 |
| 4 | Subject: udev.c: Do not require libudev.h if DNO_LIBUDEV |
| 5 | |
| 6 | libudev may not be presented at all, do not require it. |
| 7 | |
| 8 | Reported-by: Boian Bonev <bbonev@ipacct.com> |
| 9 | Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> |
| 10 | --- |
| 11 | udev.c | 3 +++ |
| 12 | 1 file changed, 3 insertions(+) |
| 13 | |
| 14 | --- a/udev.c |
| 15 | +++ b/udev.c |
| 16 | @@ -26,7 +26,10 @@ |
| 17 | #include <signal.h> |
| 18 | #include <limits.h> |
| 19 | #include <syslog.h> |
| 20 | + |
| 21 | +#ifndef NO_LIBUDEV |
| 22 | #include <libudev.h> |
| 23 | +#endif |
| 24 | |
| 25 | static char *unblock_path; |
| 26 | |