From c3f5e30069efd2d645121652f1eb63cdcb725194 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 12 Apr 2016 07:43:57 +0200 Subject: fix build with newer linux kernels --- name.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/name.sh b/name.sh index 9da92fc..288ea8f 100755 --- a/name.sh +++ b/name.sh @@ -1,7 +1,11 @@ #!/bin/sh TYPE="$1" -INPUT="/usr/include/linux/input.h" +if test -f "/usr/include/linux/input-event-codes.h"; then + INPUT="/usr/include/linux/input-event-codes.h" +else + INPUT="/usr/include/linux/input.h" +fi awk " /KEY_MIN_INTERESTING/ {next}; -- cgit