Jeff Johnson writes:
> After some poking around, it looked like recv was setting errno to
> ENOENT for some reason. I figured out why today. Win32 sockets don't
> set errno at all. ENOENT was just left in errno from some earlier
> call.
There are already a few (wrong) attempts to cover this situation in
fe-connect.c, but it looks like a bunch of #ifdef's are needed.
> I haven't done much C coding in a few years and don't want to break
> other code by blindly doing:
>
> #define errno WSAGetLastError
Probably rather
#ifndef WIN32
normal code;
#else
windows code;
#endif
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter