OSDN Git Service

> Ok, where's a "system dependent hack" :)
authorBruce Momjian <bruce@momjian.us>
Tue, 21 Aug 2001 20:39:54 +0000 (20:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 21 Aug 2001 20:39:54 +0000 (20:39 +0000)
commit5db5c2db61e7b6493c3a92742bf5ee1e49e3e511
tree8c5a7c63a35bd3dcded2edbae31a6c910beb7c1d
parentf933766ba7c5446a28d714904ae0c46d8b21b86a
> 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.
>
> Mikhail, could you please test this code on your nt4 system?
> Could someone else test this code on a win98/95 system?
>
> It works on win2k over here.

It works on win2k here too but not on win98/95 or winNT.
Anyway, attached is the patch which uses Magnus's my_sock_strerror
function (renamed to winsock_strerror). The only difference is that
I put the code to load and unload netmsg.dll in the libpqdll.c
(is this OK Magnus?).

Mikhail Terekhov
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpqdll.c
src/interfaces/libpq/win32.h