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