Re: Re: [BUGS] WIN32 Non Blocking

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Re: [BUGS] WIN32 Non Blocking
Дата
Msg-id
29296.996945104@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: [BUGS] WIN32 Non Blocking "Darko Prenosil" <darko_prenosil@yahoo.com>
Re: [BUGS] WIN32 Non Blocking Bruce Momjian <pgman@candle.pha.pa.us>
Re: Re: [BUGS] WIN32 Non Blocking Tom Lane <tgl@sss.pgh.pa.us>
Re: Re: [BUGS] WIN32 Non Blocking Bruce Momjian <pgman@candle.pha.pa.us>
Bruce Momjian  writes:
> Do we have a fix for this?  It is a WIN32/libpq/multibyte problem.

AFAIK it's all fixed (barring new bug reports ;-)).  The main problems
were (a) win32.mak hadn't gotten updated when we changed the set of
backend source files that are included into libpq for MULTIBYTE;
(b) win32.mak failed to define FRONTEND, (c) someone had incorrectly
added 

#ifndef WIN32
                int        optval;
#else
                char       optval;
#endif

upon noting that his Windows compiler griped about

                if (getsockopt(conn->sock, SOL_SOCKET, SO_ERROR,
                               &optval, &optlen) == -1)

instead of realizing that the correct fix is

                if (getsockopt(conn->sock, SOL_SOCKET, SO_ERROR,
                               (char *) &optval, &optlen) == -1)

(a) is new in 7.1 but the other bugs go back at least to 7.0.

			regards, tom lane
В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
От: Bruce Momjian
Дата:
FAQ