aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-11-06 20:35:52 -0400
committerMike Frysinger <vapier@gentoo.org>2021-11-06 20:35:52 -0400
commitb44c5d6e216cb085023d14005f08258be562ba90 (patch)
tree3733761e468ec7127bf574485e50480e24d272d2 /sim
parente6af0f123a6cdc5ef5933484e775e3d4178fe2c6 (diff)
downloadgdb-b44c5d6e216cb085023d14005f08258be562ba90.zip
gdb-b44c5d6e216cb085023d14005f08258be562ba90.tar.gz
gdb-b44c5d6e216cb085023d14005f08258be562ba90.tar.bz2
sim: ppc: switch to libiberty environ.h
Drop our compat code and assume environ exists to simplify. We did this for all other targets already, but ppc was missed.
Diffstat (limited to 'sim')
-rw-r--r--sim/ppc/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c
index d9a4070..83b629e 100644
--- 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;