diff options
Diffstat (limited to 'recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 71 |
1 files changed, 25 insertions, 46 deletions
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch b/recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch index 03bdc05a..63a460cc 100644 --- a/recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch +++ b/recipes-qt/qt5/qtwebengine/chromium/0008-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c769d6be7210a2fbc866e36f87ad21bcc91e9c6e Mon Sep 17 00:00:00 2001 | 1 | From ddedffaeb9f04ac8530f87f5010e0008dc548b96 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 30 Nov 2019 10:07:43 -0800 | 3 | Date: Sat, 30 Nov 2019 10:07:43 -0800 |
4 | Subject: [PATCH] chromium: Fix build on 32bit arches with 64bit time_t | 4 | Subject: [PATCH] chromium: Fix build on 32bit arches with 64bit time_t |
@@ -11,58 +11,37 @@ input.h [1] | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
13 | --- | 13 | --- |
14 | chromium/ui/events/ozone/evdev/event_converter_evdev.cc | 4 ++-- | 14 | chromium/ui/events/ozone/evdev/event_converter_evdev.h | 5 +++++ |
15 | chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 6 +++--- | 15 | chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 3 +-- |
16 | chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h | 5 +++++ | 16 | 2 files changed, 6 insertions(+), 2 deletions(-) |
17 | 3 files changed, 10 insertions(+), 5 deletions(-) | ||
18 | 17 | ||
19 | diff --git a/chromium/ui/events/ozone/evdev/event_converter_evdev.cc b/chromium/ui/events/ozone/evdev/event_converter_evdev.cc | 18 | diff --git a/chromium/ui/events/ozone/evdev/event_converter_evdev.h b/chromium/ui/events/ozone/evdev/event_converter_evdev.h |
20 | index 9f27d39e209..f565dd2ce5c 100644 | 19 | index 717410f2ebc..a4cd55ca20e 100644 |
21 | --- a/chromium/ui/events/ozone/evdev/event_converter_evdev.cc | 20 | --- a/chromium/ui/events/ozone/evdev/event_converter_evdev.h |
22 | +++ b/chromium/ui/events/ozone/evdev/event_converter_evdev.cc | 21 | +++ b/chromium/ui/events/ozone/evdev/event_converter_evdev.h |
23 | @@ -176,8 +176,8 @@ void EventConverterEvdev::SetPalmSuppressionCallback( | 22 | @@ -20,6 +20,11 @@ |
24 | base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent( | 23 | #include "ui/events/ozone/evdev/event_dispatch_callback.h" |
25 | const input_event& event) { | 24 | #include "ui/gfx/geometry/size.h" |
26 | base::TimeTicks timestamp = | 25 | |
27 | - ui::EventTimeStampFromSeconds(event.time.tv_sec) + | 26 | +#ifndef input_event_sec |
28 | - base::TimeDelta::FromMicroseconds(event.time.tv_usec); | 27 | +#define input_event_sec time.tv_sec |
29 | + ui::EventTimeStampFromSeconds(event.input_event_sec) + | 28 | +#define input_event_usec time.tv_usec |
30 | + base::TimeDelta::FromMicroseconds(event.input_event_usec); | 29 | +#endif |
31 | ValidateEventTimeClock(×tamp); | 30 | + |
32 | return timestamp; | 31 | struct input_event; |
33 | } | 32 | |
33 | namespace ui { | ||
34 | diff --git a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 34 | diff --git a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc |
35 | index 363c3183e05..4fccfd62f84 100644 | 35 | index 01e49b7bbfd..4fccfd62f84 100644 |
36 | --- a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 36 | --- a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc |
37 | +++ b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 37 | +++ b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc |
38 | @@ -59,11 +59,11 @@ void TouchEventLogEvdev::DumpLog(const char* filename) { | 38 | @@ -63,8 +63,7 @@ void TouchEventLogEvdev::DumpLog(const char* filename) { |
39 | for (int i = 0; i < kDebugBufferSize; ++i) { | ||
40 | struct TouchEvent* te = | ||
41 | &logged_events_[(debug_buffer_tail_ + i) % kDebugBufferSize]; | ||
42 | - if (te->ev.time.tv_sec == 0 && te->ev.time.tv_usec == 0) | ||
43 | + if (te->ev.input_event_sec == 0 && te->ev.input_event_usec == 0) | ||
44 | continue; | 39 | continue; |
45 | std::string event_string = base::StringPrintf( | 40 | std::string event_string = base::StringPrintf( |
46 | - "E: %ld.%06ld %04x %04x %d %d\n", te->ev.time.tv_sec, | 41 | "E: %ld.%06ld %04x %04x %d %d\n", te->ev.input_event_sec, |
47 | - te->ev.time.tv_usec, te->ev.type, te->ev.code, te->ev.value, te->slot); | 42 | - te->ev.input_event_usec, te->ev.type, te->ev.code, te->ev.value, |
48 | + "E: %ld.%06ld %04x %04x %d %d\n", te->ev.input_event_sec, | 43 | - te->slot); |
49 | + te->ev.input_event_usec, te->ev.type, te->ev.code, te->ev.value, te->slot); | 44 | + te->ev.input_event_usec, te->ev.type, te->ev.code, te->ev.value, te->slot); |
50 | report_content += event_string; | 45 | report_content += event_string; |
51 | } | 46 | } |
52 | file.Write(0, report_content.c_str(), report_content.length()); | 47 | file.Write(0, report_content.c_str(), report_content.length()); |
53 | diff --git a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h | ||
54 | index 0d5b83148f6..1f17608e94d 100644 | ||
55 | --- a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h | ||
56 | +++ b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h | ||
57 | @@ -14,6 +14,11 @@ | ||
58 | |||
59 | #include "base/component_export.h" | ||
60 | |||
61 | +#ifndef input_event_sec | ||
62 | +#define input_event_sec time.tv_sec | ||
63 | +#define input_event_usec time.tv_usec | ||
64 | +#endif | ||
65 | + | ||
66 | namespace ui { | ||
67 | |||
68 | class EventDeviceInfo; | ||