[PATCH] Add missing limits.h include

Peter Hutterer peter.hutterer at who-t.net
Sun Aug 18 23:25:21 UTC 2019


On Sun, Aug 18, 2019 at 10:01:06AM +0300, Baruch Siach wrote:
> Fixes build with musl libc that does not include limits.h indirectly via
> other headers.
> 
> evtest.c: In function ‘scan_devices’:
> evtest.c:886:14: error: ‘PATH_MAX’ undeclared (first use in this function); did you mean  INT8_MAX’?
>    char fname[PATH_MAX];
>               ^~~~~~~~
> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

pushed, thanks

   16e5104..5eb4ab1  master -> master

Cheers,
   Peter

> ---
>  evtest.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/evtest.c b/evtest.c
> index 37d4f8540333..548c203564d3 100644
> --- a/evtest.c
> +++ b/evtest.c
> @@ -56,6 +56,7 @@
>  #include <getopt.h>
>  #include <ctype.h>
>  #include <signal.h>
> +#include <limits.h>
>  #include <sys/time.h>
>  #include <sys/types.h>
>  #include <unistd.h>
> -- 
> 2.23.0.rc1
> 


More information about the Input-tools mailing list