From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Ian Lance Taylor <ian(at)airs(dot)com> |
Cc: | Mikhail Terekhov <terekhov(at)emc(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WIN32 errno patch |
Date: | 2001-08-09 21:18:22 |
Message-ID: | 5525.997391902@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers pgsql-patches |
Ian Lance Taylor <ian(at)airs(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Naeslund(f) | 2001-08-09 21:35:37 | Re: Re: WIN32 errno patch |
Previous Message | Peter Eisentraut - PostgreSQL | 2001-08-09 21:03:11 | pgsql/src/test/regress/expected horology.out |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Naeslund(f) | 2001-08-09 21:35:37 | Re: Re: WIN32 errno patch |
Previous Message | Ian Lance Taylor | 2001-08-09 20:58:41 | Re: WIN32 errno patch |
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Naeslund(f) | 2001-08-09 21:35:37 | Re: Re: WIN32 errno patch |
Previous Message | Ian Lance Taylor | 2001-08-09 20:58:41 | Re: WIN32 errno patch |