Skip to content

Commit

Permalink
eventlircd: fix build with kernel 4.4
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
sraue committed Dec 18, 2015
1 parent f671ea7 commit 74a4657
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/sysutils/eventlircd/patches/eventlircd-kernel-4.4.patch
@@ -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

0 comments on commit 74a4657

Please sign in to comment.