PATCH for the mingw header include/mingw32/stdlib.h

Marc Herbert Marc.Herbert@inrialpes.fr
Thu Sep 14 06:23:00 GMT 2000


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.


Sincerely,

-- 
Marc Herbert           | GIE Dyade (Bull/INRIA)
Marc.Herbert@inria.fr  |   http://www.dyade.fr/
tel: +33 4 7661 5258   | VASY Project 
fax: +33 4 7661 5252   |   http://www.inrialpes.fr/vasy





--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list