Re: [bug-gnulib] gettimeofday() for Win32

2005-08-25 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > What's the right way to fill the struct timezone? Don't fill it in at all. Don't even look at the pointer to it. POSIX says portable applications must always pass NULL, but I wouldn't even rely on that. >> I have two questions: Would you consider inte

Re: [bug-gnulib] gettimeofday() for Win32

2005-08-25 Thread Martin Lambers
On Thu, 25. Aug 2005, 15:32:00 +0200, Bruno Haible wrote: > > If so, how can this be done? > > It can be done by merging your .m4 file with Jim's one, and put a big > #if inside lib/gettimeofday.c. OK, I had no better idea than defining GETTIMEOFDAY_USE_REPLACEMENTS if the replacement functions

Re: [bug-gnulib] gettimeofday() for Win32

2005-08-25 Thread Bruno Haible
Hi, Martin Lambers wrote: > I'd like to provide a gettimeofday() function for systems that do not > have it (at least Win32). > > I already wrote a module that works, see below. But this module > overwrites the existing gettimeofday module. I do not know how to > integrate the changes into the exi