conflicting gettimeofday with MinGW

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема conflicting gettimeofday with MinGW
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901E7BB8D@m0143.s-mxs.net
обсуждение исходный текст
Ответы Re: conflicting gettimeofday with MinGW  (Magnus Hagander <magnus@hagander.net>)
Re: conflicting gettimeofday with MinGW  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
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 ?

Andreas


В списке pgsql-hackers по дате отправления:

Предыдущее
От: NikhilS
Дата:
Сообщение: Re: UPDATE using sub selects
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: conflicting gettimeofday with MinGW