On Sun, Jul 14, 2019 at 3:54 PM Laurent Vivier <laur...@vivier.eu> wrote: > > From: Daniel P. Berrangé <berra...@redhat.com> > > The SIOCGSTAMP symbol was previously defined in the > asm-generic/sockios.h header file. QEMU sees that header > indirectly via sys/socket.h > > In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115 > the asm-generic/sockios.h header no longer defines SIOCGSTAMP. > Instead it provides only SIOCGSTAMP_OLD, which only uses a > 32-bit time_t on 32-bit architectures. > > The linux/sockios.h header then defines SIOCGSTAMP using > either SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. If > SIOCGSTAMP_NEW is used, then the tv_sec field is 64-bit even > on 32-bit architectures > > To cope with this we must now convert the old and new type from > the target to the host one. > > Signed-off-by: Daniel P. Berrangé <berra...@redhat.com> > Signed-off-by: Laurent Vivier <laur...@vivier.eu>
Looks good to me now Reviewed-by: Arnd Bergmann <a...@arndb.de>