1From 7d7c5a81b0e2f3321d269b7acc450d1eec7a910b Mon Sep 17 00:00:00 2001 2From: Baruch Siach <baruch@tkos.co.il> 3Date: Sun, 18 Aug 2019 09:57:23 +0300 4Subject: [PATCH] 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> 18--- 19Upstream status: sent to input-tools@lists.freedesktop.org (moderated) 20 21 evtest.c | 1 + 22 1 file changed, 1 insertion(+) 23 24diff --git a/evtest.c b/evtest.c 25index 37d4f8540333..548c203564d3 100644 26--- a/evtest.c 27+++ b/evtest.c 28@@ -56,6 +56,7 @@ 29 #include <getopt.h> 30 #include <ctype.h> 31 #include <signal.h> 32+#include <limits.h> 33 #include <sys/time.h> 34 #include <sys/types.h> 35 #include <unistd.h> 36-- 372.23.0.rc1 38 39