]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
rasdaemon: fix compile against musl libc
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 1 Sep 2021 00:32:18 +0000 (03:32 +0300)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 1 Apr 2022 08:48:58 +0000 (10:48 +0200)
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 <stijn@linux-ipv6.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
ras-events.c

index fe4bd26a0281094bd343cda9d66eca02811c4aca..39cab20197df6cf95b322f7e4f47fc3bf4f2860e 100644 (file)
@@ -18,6 +18,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>