[PATCH evemu 1/4] make-event-names.py: fix SYN_MAX definition for modern kernel headers

Peter Hutterer peter.hutterer at who-t.net
Sun Aug 10 14:52:30 PDT 2014


On Sat, Aug 09, 2014 at 12:18:08AM +0200, Peter Seiderer wrote:
> SYN_MAX has been exported to user space since 3.12 (52764fed5: Input: add
> SYN_MAX and SYN_CNT constants), so only define it locally if not already
> defined, otherwise the build breaks.
> 
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>

This bit was removed a couple of days ago in
1c2fcbab5761a7311d355a6bfda12f5dd1f1780b, so we can skip this patch.

Cheers,
   Peter

> ---
>  src/make-event-names.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/make-event-names.py b/src/make-event-names.py
> index bc77f2c..2d0924d 100755
> --- a/src/make-event-names.py
> +++ b/src/make-event-names.py
> @@ -92,7 +92,9 @@ def print_mapping_table(bits):
>  	print("#ifndef EVENT_NAMES_H")
>  	print("#define EVENT_NAMES_H")
>  	print("")
> +	print("#ifndef SYN_MAX")
>  	print("#define SYN_MAX 3 /* linux/input.h doesn't define that */")
> +	print("#endif")
>  	print("")
>  
>  	for prefix in prefixes:
> -- 
> 1.8.1.4
> 
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools


More information about the Input-tools mailing list