aboutsummaryrefslogtreecommitdiffstats
path: root/testing/brltty/269.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/brltty/269.patch')
-rw-r--r--testing/brltty/269.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/testing/brltty/269.patch b/testing/brltty/269.patch
deleted file mode 100644
index b8506e6fe4a..00000000000
--- a/testing/brltty/269.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 646c474ed1e8d263ac21cf5f71af10e5ad7ae411 Mon Sep 17 00:00:00 2001
-From: Heiko Thiery <heiko.thiery@gmail.com>
-Date: Sun, 7 Jun 2020 15:52:52 +0200
-Subject: [PATCH] fix input_event time related compile fail
-
-./system_linux.c: In function 'writeInputEvent':
-./system_linux.c:962:23: error: 'struct input_event' has no member named 'time'; did you mean 'type'?
- gettimeofday(&event.time, NULL);
- ^~~~
- type
-
-Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
----
- Programs/system_linux.c | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/Programs/system_linux.c b/Programs/system_linux.c
-index bf441dc992..2762dc29ea 100644
---- a/Programs/system_linux.c
-+++ b/Programs/system_linux.c
-@@ -165,6 +165,14 @@ processSupplementaryGroups (GroupsProcessor *processGroups, void *data) {
- #ifdef HAVE_LINUX_INPUT_H
- #include <linux/input.h>
-
-+#ifndef input_event_sec
-+#define input_event_sec time.tv_sec
-+#endif
-+
-+#ifndef input_event_usec
-+#define input_event_usec time.tv_usec
-+#endif
-+
- #include "kbd_keycodes.h"
-
- LINUX_KEY_MAP(xt00) = {
-@@ -1138,9 +1146,12 @@ int
- writeInputEvent (UinputObject *uinput, uint16_t type, uint16_t code, int32_t value) {
- #ifdef HAVE_LINUX_UINPUT_H
- struct input_event event;
-+ struct timeval tv;
-
- memset(&event, 0, sizeof(event));
-- gettimeofday(&event.time, NULL);
-+ gettimeofday(&tv, NULL);
-+ event.input_event_sec = tv.tv_sec;
-+ event.input_event_usec = tv.tv_usec;
- event.type = type;
- event.code = code;
- event.value = value;