mingw using wrong errno definition

Chris Faylor cgf@cygnus.com
Wed Apr 5 12:09:00 GMT 2000


On Wed, Apr 05, 2000 at 10:20:32AM -0500, Mumit Khan wrote:
>This is typical of code that declares it's own errno instead of using the
>declaration from system headers. I'm assuming of course that *all* code
>here is built using -mno-cygwin so that there's no mix-and-match.
>
>Search for `extern.*int.*errno' in your code. If there is such a thing,
>delete and include <errno.h> for both Cygwin and Mingw.

I'm pretty sure that the zlib code is doing the right thing.

>If that's not the case, please send me a download URL for the code or
>just email me the package (.tar.gz) if it's under a meg or so.

It's in CVS winsup/cinstall.  I think the problem is due to the fact
that zlib was compiled by cd'ing to the directory, as I mentioned in
another thread.  Compiling it from the winsup/cinstall directory should
rectify the problem.

cgf


More information about the Cygwin-developers mailing list