[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
Re: [libvirt] [PATCH libvirt 6/6] Cast timeval.tv_sec long to localtime expected type time_t
Fri, 27 Jan 2012 17:05:38 +0100
On Thu, Jan 26, 2012 at 4:42 PM, Marc-André Lureau
> On Thu, Jan 26, 2012 at 3:01 PM, Bruno Haible <address@hidden> wrote:
>> Eric Blake wrote:
>>> 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 ? This type is not defined
>> by the Windows API; the mingw people have the power to define it correctly.
Mingw64 reviewer said Windows actually defines it. I dig the msdn and
I suppose they are correct, and they should follow what Windows uses.
The problem was reported in an msdn discussion too:
Should gnulib redefine this struct similarly to other incompatible types?