From 7582b72a1f1f466cb5c526dfd35f93a8dee5a5b0 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 6 Jan 1999 16:46:18 +0000 Subject: Ditto, for egcs. --- cross/COMMON/patches-egcs/patch-ac | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 cross/COMMON/patches-egcs/patch-ac (limited to 'cross') diff --git a/cross/COMMON/patches-egcs/patch-ac b/cross/COMMON/patches-egcs/patch-ac new file mode 100644 index 00000000000..45a370f76b6 --- /dev/null +++ b/cross/COMMON/patches-egcs/patch-ac @@ -0,0 +1,39 @@ +$NetBSD: patch-ac,v 1.1 1999/01/06 16:46:18 tv Exp $ + +--- libiberty/strerror.c.orig Fri May 15 19:42:41 1998 ++++ libiberty/strerror.c Wed Jan 6 11:45:53 1999 +@@ -7,22 +7,9 @@ + + #include "config.h" + +-#ifdef HAVE_SYS_ERRLIST +-/* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least) +- might declare sys_errlist in a way that the compiler might consider +- incompatible with our later declaration, perhaps by using const +- attributes. So we hide the declaration in errno.h (if any) using a +- macro. */ +-#define sys_errlist sys_errlist__ +-#endif +- + #include + #include + +-#ifdef HAVE_SYS_ERRLIST +-#undef sys_errlist +-#endif +- + /* Routines imported from standard C runtime libraries. */ + + #ifdef __STDC__ +@@ -459,11 +446,6 @@ + + static int sys_nerr; + static const char **sys_errlist; +- +-#else +- +-extern int sys_nerr; +-extern char *sys_errlist[]; + + #endif + -- cgit v1.2.3