[PATCH v1] Include limits.h for PATH_MAX.
Peter Hutterer
peter.hutterer at who-t.net
Wed Oct 11 23:06:59 UTC 2017
On Wed, Oct 11, 2017 at 11:22:43AM +0200, Peter Seiderer wrote:
> Fixes the following compile failure when building with musl:
>
> find_event_devices.c: In function ‘find_event_devices’:
> find_event_devices.c:60:14: error: ‘PATH_MAX’ undeclared (first use in this function)
> char fname[PATH_MAX];
> ^~~~~~~~
>
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
pushed, thanks. For next time please put the repository name between the
[PATCH ] brackets. Luckily this file name was unique enough to identify
evemu :)
Cheers,
Peter
> ---
> tools/find_event_devices.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/find_event_devices.c b/tools/find_event_devices.c
> index 2a43d54..3a74096 100644
> --- a/tools/find_event_devices.c
> +++ b/tools/find_event_devices.c
> @@ -24,6 +24,7 @@
>
> #define _GNU_SOURCE
> #include <linux/input.h>
> +#include <limits.h>
> #include <dirent.h>
> #include <string.h>
> #include <stdio.h>
> --
> 2.14.2
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/input-tools
>
More information about the Input-tools
mailing list