- Fix build on CURRENT

- build only for i386
This commit is contained in:
Dirk Meyer 2002-12-15 08:27:46 +00:00
parent 3eaf8044e2
commit d1b55e63c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71654
3 changed files with 27 additions and 1 deletions

View file

@ -22,7 +22,9 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/m6811-elf-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}b
BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf
# Configuration alpha-unknown-freebsdelf not supported
#ONLY_FOR_ARCHS= i386
# Configuration sparc64-unknown-freebsdelf not supported
# compilation stops with intermal compiler errors.
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
HAS_CONFIGURE= yes

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;