diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-16 17:36:24 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-06-16 17:36:24 +0000 |
commit | 8430bab86616f9aa1a1035484714eb191b4aea17 (patch) | |
tree | 08c74f01df19550c67a00fa124094594cf001539 /user/qemu/time64.patch | |
parent | 68aeb5f5cecbd45de38bfd75285a3246d5169375 (diff) | |
download | packages-8430bab86616f9aa1a1035484714eb191b4aea17.tar.gz packages-8430bab86616f9aa1a1035484714eb191b4aea17.tar.bz2 packages-8430bab86616f9aa1a1035484714eb191b4aea17.tar.xz packages-8430bab86616f9aa1a1035484714eb191b4aea17.zip |
user/qemu: Fix last time64 issue
Diffstat (limited to 'user/qemu/time64.patch')
-rw-r--r-- | user/qemu/time64.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/user/qemu/time64.patch b/user/qemu/time64.patch index 8ec9f45df..342231146 100644 --- a/user/qemu/time64.patch +++ b/user/qemu/time64.patch @@ -18,3 +18,23 @@ evdev.type = le16_to_cpu(event->type); evdev.code = le16_to_cpu(event->code); evdev.value = le32_to_cpu(event->value); +--- qemu-4.2.0/contrib/vhost-user-input/main.c.old 2019-12-12 18:20:47.000000000 +0000 ++++ qemu-4.2.0/contrib/vhost-user-input/main.c 2020-06-15 04:46:15.198762807 +0000 +@@ -115,13 +115,16 @@ + static void vi_handle_status(VuInput *vi, virtio_input_event *event) + { + struct input_event evdev; ++ struct timeval tv; + int rc; + +- if (gettimeofday(&evdev.time, NULL)) { ++ if (gettimeofday(&tv, NULL)) { + perror("vi_handle_status: gettimeofday"); + return; + } + ++ evdev.input_event_sec = tv.tv_sec; ++ evdev.input_event_usec = tv.tv_usec; + evdev.type = le16toh(event->type); + evdev.code = le16toh(event->code); + evdev.value = le32toh(event->value); |