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)
Список
Дерево обсуждения
Re: Re: WIN32 errno patch "Steve Howe" <howe@carcass.dhs.org>
Re: Re: Re: WIN32 errno patch Tom Lane <tgl@sss.pgh.pa.us>
Ian Lance Taylor  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
FAQ