[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libvirt] [PATCH libvirt 6/6] Cast timeval.tv_sec long to localtime
From: |
Bruno Haible |
Subject: |
Re: [libvirt] [PATCH libvirt 6/6] Cast timeval.tv_sec long to localtime expected type time_t |
Date: |
Thu, 26 Jan 2012 15:01:49 +0100 |
User-agent: |
KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; ) |
Eric Blake wrote:
> <_timeval.h>:
> struct timeval
> {
> long tv_sec;
> long tv_usec;
> };
>
> Oops. struct timeval is generating a struct timeval with a 32-bit
> tv_sec even when time_t is 64-bits.
mingw64 is still in development. Please, Marc-André, can you work with
them, upstream, to make sure that they follow the definition of
'struct timeval' as described by POSIX [1][2]? This type is not defined
by the Windows API; the mingw people have the power to define it correctly.
Bruno
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html
[2] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html