diff options
author | tv <tv@pkgsrc.org> | 1999-01-06 16:38:23 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1999-01-06 16:38:23 +0000 |
commit | 9f26e0511d31e8b689f6470e5b88284d5b490efa (patch) | |
tree | 07779c764241922a2a80ae1e73a2c924afe98d61 /cross | |
parent | 84d26f8a40934f1531efa45a2c581f856b33cff3 (diff) | |
download | pkgsrc-9f26e0511d31e8b689f6470e5b88284d5b490efa.tar.gz |
Fix handling of sys_{errlist,nerr} in strerror.c.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/COMMON/patches-binutils/patch-ab | 39 | ||||
-rw-r--r-- | cross/binutils/patches/patch-ak | 39 |
2 files changed, 78 insertions, 0 deletions
diff --git a/cross/COMMON/patches-binutils/patch-ab b/cross/COMMON/patches-binutils/patch-ab new file mode 100644 index 00000000000..bf18e6386a9 --- /dev/null +++ b/cross/COMMON/patches-binutils/patch-ab @@ -0,0 +1,39 @@ +$NetBSD: patch-ab,v 1.1 1999/01/06 16:38:23 tv Exp $ + +--- libiberty/strerror.c.orig Wed Jan 6 11:35:12 1999 ++++ libiberty/strerror.c Wed Jan 6 11:35:41 1999 +@@ -7,22 +7,9 @@ + + #include "config.h" + +-#ifndef NEED_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 <stdio.h> + #include <errno.h> + +-#ifndef NEED_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 + diff --git a/cross/binutils/patches/patch-ak b/cross/binutils/patches/patch-ak new file mode 100644 index 00000000000..84da708dcc4 --- /dev/null +++ b/cross/binutils/patches/patch-ak @@ -0,0 +1,39 @@ +$NetBSD: patch-ak,v 1.1 1999/01/06 16:38:23 tv Exp $ + +--- libiberty/strerror.c.orig Wed Jan 6 11:35:12 1999 ++++ libiberty/strerror.c Wed Jan 6 11:35:41 1999 +@@ -7,22 +7,9 @@ + + #include "config.h" + +-#ifndef NEED_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 <stdio.h> + #include <errno.h> + +-#ifndef NEED_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 + |