• Bruce Momjian's avatar
    > Ok, where's a "system dependent hack" :) · 5db5c2db
    Bruce Momjian authored
    > 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
    5db5c2db
fe-misc.c 20 KB