Re: conflicting gettimeofday with MinGW

From: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: conflicting gettimeofday with MinGW
Date: 2007-04-11 15:43:15
Message-ID: E1539E0ED7043848906A8FF995BDA57901E7BC43@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


That page is ages out of date. The intended sync is apparently broken.
The current download area is on sourceforge
http://sf.net/project/showfiles.php?group_id=2435

Andreas

> > 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 ?
> >
> >
> >
>
> I don't see 3.10 on the download page at
> http://www.mingw.org/download.shtml

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-04-11 15:43:46 Re: Vista/IPv6
Previous Message Tom Lane 2007-04-11 15:21:12 Re: UUID generation functions