From 5db5c2db61e7b6493c3a92742bf5ee1e49e3e511 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 21 Aug 2001 20:39:54 +0000 Subject: > 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-lobj.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/interfaces/libpq/fe-lobj.c') diff --git a/src/interfaces/libpq/fe-lobj.c b/src/interfaces/libpq/fe-lobj.c index 3ec1b4f2cf0..873095ce995 100644 --- a/src/interfaces/libpq/fe-lobj.c +++ b/src/interfaces/libpq/fe-lobj.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.37 2001/08/17 15:11:15 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-lobj.c,v 1.38 2001/08/21 20:39:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -30,12 +30,6 @@ #include "libpq/libpq-fs.h" /* must come after sys/stat.h */ - -#ifdef WIN32 /* need to use normal errno in this file */ -#undef errno -#endif - - #define LO_BUFSIZE 8192 static int lo_initialize(PGconn *conn); -- cgit v1.2.3