diff mbox series

[1/1] package/tslib: fix build with headers < 4.16

Message ID 20200323074828.44084-1-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series [1/1] package/tslib: fix build with headers < 4.16 | expand

Commit Message

Fabrice Fontaine March 23, 2020, 7:48 a.m. UTC
Commit fedaa28079489b308f77d80a0cac8698d776df23 fixed build with
headers >= 4.16 but as a side effect, build with headers < 4.16 is now
failing so add an upstream patch

Fixes:
 - http://autobuild.buildroot.org/results/594cd1a0d9e6286eca62b575fd1ba2d3a5e01234

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...-with-input_event_sec-for-old-kernel.patch | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch

Comments

Thomas Petazzoni March 24, 2020, 9:05 p.m. UTC | #1
On Mon, 23 Mar 2020 08:48:28 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Commit fedaa28079489b308f77d80a0cac8698d776df23 fixed build with
> headers >= 4.16 but as a side effect, build with headers < 4.16 is now
> failing so add an upstream patch
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/594cd1a0d9e6286eca62b575fd1ba2d3a5e01234
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...-with-input_event_sec-for-old-kernel.patch | 28 +++++++++++++++++++
>  1 file changed, 28 insertions(+)
>  create mode 100644 package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch

Applied to master, thanks.

Thomas
diff mbox series

Patch

diff --git a/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch b/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch
new file mode 100644
index 0000000000..5dca3a009c
--- /dev/null
+++ b/package/tslib/0002-Fix-build-error-with-input_event_sec-for-old-kernel.patch
@@ -0,0 +1,28 @@ 
+From 050bf24c16e95f63a76e13156346a072035d45b4 Mon Sep 17 00:00:00 2001
+From: Evan Harvey <evanwork1234@gmail.com>
+Date: Thu, 19 Mar 2020 01:32:03 -0700
+Subject: [PATCH] Fix build error with input_event_sec for old kernel
+
+[Retrieved from:
+https://github.com/libts/tslib/commit/050bf24c16e95f63a76e13156346a072035d45b4]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ tools/ts_uinput.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/tools/ts_uinput.c b/tools/ts_uinput.c
+index 1832a07..9c40bb3 100644
+--- a/tools/ts_uinput.c
++++ b/tools/ts_uinput.c
+@@ -51,6 +51,11 @@
+ #include <linux/fb.h>
+ #endif
+ 
++#ifndef input_event_sec
++#define input_event_sec time.tv_sec
++#define input_event_usec time.tv_usec
++#endif
++
+ #define RESET   "\033[0m"
+ #define RED     "\033[31m"
+ #define GREEN   "\033[32m"