This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
libc/include/sys/errno.h
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- To: newlib at sources dot redhat dot com
- Date: Fri, 18 Apr 2003 09:27:07 -0400
- Subject: libc/include/sys/errno.h
- Reply-to: newlib at sources dot redhat dot com
Any reason that this change shouldn't happen?
CGF, if this is accepted I can clean up the ugly hack in
winsup/cygwin/errno.cc.
Earnie.
2003-04-18 Earnie Boyd <earnie at users dot sf dot net>
* include/sys/errno.h (_sys_nerr): Add _CONST modifier due to the fact
that Cygwin uses it that way.
(sys_nerr): Add const modifier.
Index: errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.11
diff -u -3 -p -r1.11 errno.h
--- errno.h 24 Sep 2002 14:10:12 -0000 1.11
+++ errno.h 18 Apr 2003 13:18:56 -0000
@@ -18,10 +18,10 @@ extern int *__errno _PARAMS ((void));
/* Please don't use these variables directly.
Use strerror instead. */
extern __IMPORT _CONST char * _CONST _sys_errlist[];
-extern __IMPORT int _sys_nerr;
+extern __IMPORT _CONST int _sys_nerr;
#ifdef __CYGWIN__
extern __IMPORT const char * const sys_errlist[];
-extern __IMPORT int sys_nerr;
+extern __IMPORT const int sys_nerr;
#endif
#define __errno_r(ptr) ((ptr)->_errno)