blob: b2bf94fd5664657f00790bb3ff52ba7e39adff5a [file] [log] [blame]
Brad Bishop7e36d532019-09-16 07:44:26 -04001From 5eb4ab1c139ea38ebe6bb4acba08b09ee7d77d3c Mon Sep 17 00:00:00 2001
2From: Baruch Siach <baruch@tkos.co.il>
3Date: Sun, 18 Aug 2019 10:01:06 +0300
4Subject: Add missing limits.h include
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Fixes build with musl libc that does not include limits.h indirectly via
10other headers.
11
12evtest.c: In function scan_devices’:
13evtest.c:886:14: error: PATH_MAX undeclared (first use in this function); did you mean INT8_MAX’?
14 char fname[PATH_MAX];
15 ^~~~~~~~
16
17Signed-off-by: Baruch Siach <baruch@tkos.co.il>
18Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
19---
20 evtest.c | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/evtest.c b/evtest.c
24index 37d4f85..548c203 100644
25--- a/evtest.c
26+++ b/evtest.c
27@@ -56,6 +56,7 @@
28 #include <getopt.h>
29 #include <ctype.h>
30 #include <signal.h>
31+#include <limits.h>
32 #include <sys/time.h>
33 #include <sys/types.h>
34 #include <unistd.h>
35--
36cgit v1.1
37