Re: WIN32 errno patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIN32 errno patch
Дата
Msg-id 5525.997391902@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIN32 errno patch  (Ian Lance Taylor <ian@airs.com>)
Ответы Re: WIN32 errno patch  (Ian Lance Taylor <ian@airs.com>)
Список pgsql-hackers
Ian Lance Taylor <ian@airs.com> writes:
> I think the clean way to handle this is something along the lines of
> what the CVS client does.  On Unix, do this:
>     #define SOCK_ERRNO errno
>     #define SOCK_STRERROR strerror
> On Windows, do this:
>     #define SOCK_ERRNO (WSAGetLastError ())
>     #define SOCK_STRERROR sock_strerror

I've been trying to avoid uglifying the code like that, but perhaps
we have no choice :-(.

> (Then you have to write sock_strerror.)

Surely Windows provides a suitable function?
        regards, tom lane


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

Предыдущее
От: Ian Lance Taylor
Дата:
Сообщение: Re: WIN32 errno patch
Следующее
От: "Magnus Naeslund\(f\)"
Дата:
Сообщение: Re: Re: WIN32 errno patch