Build fails with 64 bits time_t
Recreating a ticket here from: https://bugs.launchpad.net/qemu/+bug/1904464
time element is deprecated on new input_event structure in kernel's input.h [1]
A patch is available and has been reviewed (but not applied) here: https://patchwork.kernel.org/project/qemu-devel/patch/20201203195819.583626-1-fontaine.fabrice@gmail.com/
This patch will avoid the following build failure:
hw/input/virtio-input-host.c: In function 'virtio_input_host_handle_status':
hw/input/virtio-input-host.c:198:28: error: 'struct input_event' has no member named 'time'
198 | if (gettimeofday(&evdev.time, NULL)) {
| ^
Fixes:
- http://autobuild.buildroot.org/results/a538167e288c14208d557cd45446df86d3d599d5
- http://autobuild.buildroot.org/results/efd4474fb4b6c0ce0ab3838ce130429c51e43bbb
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f