Re: WIN32 errno patch

Serguei Mokhov <sa_mokho@alcor.concordia.ca>

From: "Serguei Mokhov" <sa_mokho@alcor.concordia.ca>
To: "Magnus Naeslund(f)" <mag@fbab.net>, "Mikhail Terekhov" <terekhov@emc.com>, "Tom Lane" <tgl@sss.pgh.pa.us>, <pgsql-patches@postgresql.org>
Date: 2001-08-18T16:33:19Z
Lists: pgsql-hackers
----- Original Message ----- 
From: Magnus Naeslund(f) <mag@fbab.net>
Sent: Saturday, August 18, 2001 10:15 AM


> Ok, where's a "system dependent hack" :)
> It seems that win9x doesn't have the "netmsg.dll" so it defaults to "normal"
> FormatMessage.
> I wonder if one could load wsock32.dll or winsock.dll on those systems
> instead of netmsg.dll.

Windows 98SE, M$ Visual C++ 6.0
In the project settings in the Link library list
you can put 'wsock32.lib'.
 
> Could someone else test this code on a win98/95 system?

I compiled and run it. I didn't produce any error messages for IP 10.10.10.3
you put there. I used localhost instead, and here is the
result:

socket error(10061):Unknown socket error(10061)

I don't know whether this is what you expected or not.

S.