PATCH for the mingw header include/mingw32/stdlib.h
Earnie Boyd
earnie_boyd@yahoo.com
Thu Sep 14 07:51:00 GMT 2000
--- Marc Herbert <Marc.Herbert@inrialpes.fr> wrote:
>
> Hi,
>
> It would be nice if the macro HAVE_SYS_ERRLIST could be defined when
> the file include/mingw32/stdlib.h defines the symbol sys_errlist
>
>
>
> *** stdlib.h 2000/09/14 09:44:30 1.1
> --- stdlib.h 2000/09/14 09:45:26
> ***************
> *** 203,208 ****
> --- 203,210 ----
> #ifndef __DECLSPEC_SUPPORTED
> extern char*** __imp__sys_errlist;
> #define sys_errlist (*__imp__sys_errlist)
> #else /* __DECLSPEC_SUPPORTED */
> __MINGW_IMPORT char* _sys_errlist[];
> #ifndef _UWIN
> #define sys_errlist _sys_errlist
> #endif /* _UWIN */
> #endif /* __DECLSPEC_SUPPORTED */
>
> + #define HAVE_SYS_ERRLIST
> +
> /*
> * OS version and such constants.
> */
>
>
> We had to do this patch in order to successfully compile
> libiberty/strerror.c in -mno-cygwin mode.
>
> I will send this patch to the mingw mailing-list too.
>
>
IMO, this patch is incorrect. HAVE_SYS_ERRLIST should be set be the
autoconfiguration tools and usually set in config.h.
Cheers,
=====
--- < http://earniesystems.safeshopper.com > ---
Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
__Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
__Minimalist GNU for Windows__
Mingw32 List: < http://www.egroups.com/group/mingw32/ >
Mingw Home: < http://www.mingw.org/ >
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list