aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-04-12 07:43:57 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-04-12 07:43:57 +0200
commitc3f5e30069efd2d645121652f1eb63cdcb725194 (patch)
tree4887931c49d7a3302b92c545de00f73c00572a97
parent919a940bb9d83c7af3bb4eac2b737290c3021a36 (diff)
downloadinput-c3f5e30069efd2d645121652f1eb63cdcb725194.tar.gz
fix build with newer linux kernels
-rwxr-xr-xname.sh6
1 files changed, 5 insertions, 1 deletions
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};