Re: Re: WIN32 errno patch
Mikhail Terekhov <terekhov@emc.com>
From: Mikhail Terekhov <terekhov@emc.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Date: 2001-08-09T22:34:23Z
Lists: pgsql-hackers
Tom Lane wrote: > > Mikhail Terekhov <terekhov@emc.com> writes: > > One can't just #undef errno on windows because it is defined as > > follows: > > I was wondering if Windows might play any games with errno. However, > we've had at least one instance of "errno = 0;" in the libpq sources > since 7.0 or before, and no one has complained that it doesn't build > on Windows ... if errno is defined as a function call, that should > yield a compile error, no? > It complains but only if you build a dll or multithreaded app. > Also, the patch is already in place, and I have a report that it works. > It works only when compiling static apps I think. Regards, Mikhail Terekhov