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