qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] Fix build with 64 bits time_t


From: Gerd Hoffmann
Subject: Re: [PATCH v2] Fix build with 64 bits time_t
Date: Wed, 25 Nov 2020 13:06:30 +0100

On Wed, Nov 18, 2020 at 09:38:24PM +0100, Fabrice Fontaine wrote:
> time element is deprecated on new input_event structure in kernel's
> input.h [1]
> 
> This 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)) {
>       |                            ^

Fails to build (rhel-7).

>  - Drop define of input_event_{sec,usec} as it is already done in 
>    include/standard-headers/linux/input.h

Maybe these are not used?  So it breaks with old system headers?

take care,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]