From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Zeugswetter Andreas ADI SD <ZeugswetterA(at)spardat(dot)at> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: conflicting gettimeofday with MinGW |
Date: | 2007-04-11 12:00:05 |
Message-ID: | 20070411120005.GF1810@svr2.hagander.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Apr 11, 2007 at 01:45:28PM +0200, Zeugswetter Andreas ADI SD wrote:
>
> mingw-runtime-3.10 introduced a gettimeofday declaration in sys/time.h
> that is not compatible with port.h.
> (current is mingw-runtime-3.12)
>
> int __cdecl gettimeofday(struct timeval *__restrict__,
> void *__restrict__ /* tzp (unused) */);
>
> The problem was already reported by Marc Lepage on June 26, 2006 shortly
> after the mingw-runtime release,
> (He reported back that it was a MinGW installation issue. But it is a
> version issue.).
>
> Now, we could probably make a case that MinGW needs to use "struct
> timezone" instead of void,
> but that change alone still does not make pg compile, because of the
> "#define TIMEZONE_GLOBAL timezone"
> in port.h.
>
> Any opinions on how to proceed ?
There doesn't happen to be a #define you can set to make mingw backwards
compatible with itself and not define that header?
We don't use gettimeofday() from them anyway, we use the one in
libpgport...
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Gevik Babakhani | 2007-04-11 12:07:55 | Re: uuid type not documented |
Previous Message | Zeugswetter Andreas ADI SD | 2007-04-11 11:45:28 | conflicting gettimeofday with MinGW |