Magnus Hagander <magnus(at)hagander(dot)net> writes:
> It seems my fix for stat() broke cygwin, because it doesn't have
> dosmaperr() available.
Are you sure you aren't just missing an #include? The other places
where we call _dosmaperr don't seem to be protected by anything more
than #ifdef WIN32.
regards, tom lane