Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
binutils-gdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastien Michelland
binutils-gdb
Commits
e3b1168e
Commit
e3b1168e
authored
21 years ago
by
Daniel Jacobowitz
Browse files
Options
Downloads
Patches
Plain Diff
* strerror.c: Revert last change. Declare static sys_nerr
and sys_errlist using different names.
parent
78ba4af6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libiberty/ChangeLog
+5
-0
5 additions, 0 deletions
libiberty/ChangeLog
libiberty/strerror.c
+2
-8
2 additions, 8 deletions
libiberty/strerror.c
with
7 additions
and
8 deletions
libiberty/ChangeLog
+
5
−
0
View file @
e3b1168e
2003-10-02 Daniel Jacobowitz <drow@mvista.com>
* strerror.c: Revert last change. Declare static sys_nerr
and sys_errlist using different names.
2003-10-01 Daniel Jacobowitz <drow@mvista.com>
* strerror.c: Don't provide or reference sys_errlist if
...
...
This diff is collapsed.
Click to expand it.
libiberty/strerror.c
+
2
−
8
View file @
e3b1168e
...
...
@@ -7,7 +7,6 @@
#include
"config.h"
#ifndef HAVE_STRERROR
#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
...
...
@@ -17,17 +16,14 @@
#define sys_nerr sys_nerr__
#define sys_errlist sys_errlist__
#endif
#endif
#include
<stdio.h>
#include
<errno.h>
#ifndef HAVE_STRERROR
#ifdef HAVE_SYS_ERRLIST
#undef sys_nerr
#undef sys_errlist
#endif
#endif
/* Routines imported from standard C runtime libraries. */
...
...
@@ -464,9 +460,10 @@ static int num_error_names = 0;
same name, it differs from other implementations in that it is dynamically
initialized rather than statically initialized. */
#ifndef HAVE_STRERROR
#ifndef HAVE_SYS_ERRLIST
#define sys_nerr sys_nerr__
#define sys_errlist sys_errlist__
static
int
sys_nerr
;
static
const
char
**
sys_errlist
;
...
...
@@ -475,7 +472,6 @@ static const char **sys_errlist;
extern
int
sys_nerr
;
extern
char
*
sys_errlist
[];
#endif
#endif
/*
...
...
@@ -542,7 +538,6 @@ init_error_tables ()
}
}
#ifndef HAVE_STRERROR
#ifndef HAVE_SYS_ERRLIST
/* Now attempt to allocate the sys_errlist table, zero it out, and then
...
...
@@ -563,7 +558,6 @@ init_error_tables ()
}
#endif
#endif
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment