summaryrefslogtreecommitdiff
path: root/cross/COMMON/patches-binutils/patch-ab
blob: d2770a2a9918384739cb79e6d933805e56432995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-ab,v 1.2 1999/01/06 17:02:39 tv Exp $

--- libiberty/strerror.c.orig	Fri May  1 11:47:54 1998
+++ libiberty/strerror.c	Wed Jan  6 12:03:36 1999
@@ -7,21 +7,12 @@
 
 #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
+/* Bogus: we have these! */
+#undef NEED_sys_errlist
+#undef NEED_sys_nerr
 
 /*  Routines imported from standard C runtime libraries. */
 
@@ -459,11 +450,6 @@
 
 static int sys_nerr;
 static const char **sys_errlist;
-
-#else
-
-extern int sys_nerr;
-extern char *sys_errlist[];
 
 #endif