Re: WIN32 errno patch - Mailing list pgsql-patches

From Serguei Mokhov
Subject Re: WIN32 errno patch
Date
Msg-id 008801c12803$cf9efa80$5dd9fea9@gunn
Whole thread Raw
In response to Re: Re: [HACKERS] Re: WIN32 errno patch  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
----- 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.




pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Next
From: "Magnus Naeslund\(f\)"
Date:
Subject: Re: WIN32 errno patch