From: Stijn Tintel Date: Wed, 1 Sep 2021 00:32:18 +0000 (+0300) Subject: rasdaemon: fix compile against musl libc X-Git-Tag: v0.6.8~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0fb792be90f126cedc22e3505de2e41c331d3bf5;p=users%2Fmchehab%2Frasdaemon.git rasdaemon: fix compile against musl libc Fix the following compile errors that occurs when building against musl: ras-events.c: In function 'read_ras_event_all_cpus': ras-events.c:366:16: error: 'PATH_MAX' undeclared (first use in this function) 366 | char pipe_raw[PATH_MAX]; | ^~~~~~~~ ras-events.c: In function 'handle_ras_events_cpu': ras-events.c:564:16: error: 'PATH_MAX' undeclared (first use in this function) 564 | char pipe_raw[PATH_MAX]; | Signed-off-by: Stijn Tintel Signed-off-by: Mauro Carvalho Chehab --- diff --git a/ras-events.c b/ras-events.c index fe4bd26..39cab20 100644 --- a/ras-events.c +++ b/ras-events.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include