projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6af0f1
)
sim: ppc: switch to libiberty environ.h
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 7 Nov 2021 00:35:52 +0000
(20:35 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 7 Nov 2021 00:35:52 +0000
(20:35 -0400)
Drop our compat code and assume environ exists to simplify.
We did this for all other targets already, but ppc was missed.
sim/ppc/main.c
patch
|
blob
|
history
diff --git
a/sim/ppc/main.c
b/sim/ppc/main.c
index d9a40700973dfc9af692be2c59b35505a884bf3f..83b629ec14aad7b2a6498759f48a13a6ace1bd7c 100644
(file)
--- a/
sim/ppc/main.c
+++ b/
sim/ppc/main.c
@@
-42,14
+42,14
@@
#include <string.h>
#include <errno.h>
+#include "environ.h"
+
#if !defined(O_NONBLOCK) || !defined(F_GETFL) || !defined(F_SETFL)
#undef WITH_STDIO
#define WITH_STDIO DO_USE_STDIO
#endif
-extern char **environ;
-
static psim *simulation = NULL;