Fix libibery build problems on CURRENT

This commit is contained in:
Dirk Meyer 2002-12-12 05:17:20 +00:00
parent aad9609aa9
commit abfb25544a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71548
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- libiberty/strerror.c.orig Mon May 29 13:45:32 2000
+++ libiberty/strerror.c Wed Dec 11 21:03:00 2002
@@ -465,8 +465,8 @@
#else
-extern int sys_nerr;
-extern char *sys_errlist[];
+extern const int sys_nerr;
+extern const char *sys_errlist[];
#endif

View file

@ -0,0 +1,11 @@
--- libiberty/strsignal.c.orig Mon May 29 13:45:32 2000
+++ libiberty/strsignal.c Wed Dec 11 21:04:43 2002
@@ -247,7 +247,7 @@
#else
#ifdef NSIG
-static int sys_nsig = NSIG;
+static const int sys_nsig = NSIG;
#else
#ifdef _NSIG
static int sys_nsig = _NSIG;