Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eventlircd: fix build with kernel 4.4
Signed-off-by: Stephan Raue <stephan@openelec.tv>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
packages/sysutils/eventlircd/patches/eventlircd-kernel-4.4.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 424810e45bb065151bed0cd8f5e03a3283c06f21 Mon Sep 17 00:00:00 2001 | ||
From: Stephan Raue <stephan@openelec.tv> | ||
Date: Fri, 18 Dec 2015 19:09:25 +0100 | ||
Subject: [PATCH] [configure.ac] add support for kernel 4.4 | ||
|
||
Signed-off-by: Stephan Raue <stephan@openelec.tv> | ||
--- | ||
configure.ac | 11 ++++++++--- | ||
1 file changed, 8 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/configure.ac b/configure.ac | ||
index b5de94d..f04ffc0 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -92,10 +92,15 @@ dnl event_name_to_code.h.sh, evkey_code_to_name.h.sh and evkey_type.h.sh | ||
dnl in order for them to generate the header files event_name_to_code.h, | ||
dnl evkey_code_to_name.h and evkey_type.h respectively | ||
AX_ABSOLUTE_HEADER(linux/input.h) | ||
-if test "x$gl_cv_absolute_linux_input_h" = "x" ; then | ||
- AC_MSG_ERROR([failed to find the absolute path to header file linux/input.h]) | ||
+AX_ABSOLUTE_HEADER(linux/input-event-codes.h) | ||
+if test "x$gl_cv_absolute_linux_input_event_codes_h" = "x" ; then | ||
+ if test "x$gl_cv_absolute_linux_input_h" = "x" ; then | ||
+ AC_MSG_ERROR([failed to find the absolute path to header file linux/input.h or linux/input-event-codes.h]) | ||
+ fi | ||
+ AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_h) | ||
+else | ||
+ AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_event_codes_h) | ||
fi | ||
-AC_SUBST(ABSOLUTE_LINUX_INPUT_H, $gl_cv_absolute_linux_input_h) | ||
|
||
PKG_CHECK_MODULES(LIBUDEV, [libudev >= 136]) | ||
|
||
-- | ||
1.9.3 | ||
|