warnings about auto importing sys_errlist / sys_nerr on Cygwin

Ian Lance Taylor iant@google.com
Tue Sep 2 17:08:00 GMT 2008


Jay <jay.krell@cornell.edu> writes:

> $ diff -u /src/gcc.orig/libiberty/strerror.c /src/gcc/libiberty/strerror.c
> --- /src/gcc.orig/libiberty/strerror.c  2005-03-27 18:28:01.000000000 -0700
> +++ /src/gcc/libiberty/strerror.c       2008-09-02 01:56:27.724250000 -0700
> @@ -4,6 +4,7 @@
>
>  #include "config.h"
>
> +#ifndef __CYGWIN__
>  #ifdef HAVE_SYS_ERRLIST
>  /* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least)
>     might declare sys_errlist in a way that the compiler might consider

Would it work to arrange to have cygwin, or whatever else is affected,
define HAVE_SYS_ERRLIST?

Ian



More information about the Gcc-patches mailing list