From: Mike Frysinger Date: Sun, 7 Nov 2021 00:35:52 +0000 (-0400) Subject: sim: ppc: switch to libiberty environ.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b44c5d6e216cb085023d14005f08258be562ba90;p=binutils-gdb.git 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. --- diff --git a/sim/ppc/main.c b/sim/ppc/main.c index d9a40700973..83b629ec14a 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -42,14 +42,14 @@ #include #include +#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;