From: Mike Frysinger Date: Sun, 23 May 2021 04:41:04 +0000 (-0400) Subject: sim: cris: add unistd.h for environ decl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e82a36be9a4bb2b27379b2b3862c5ff09cdfab8b;p=binutils-gdb.git sim: cris: add unistd.h for environ decl We include environ.h for the fallback, but we still need to include unistd.h in case it provides it as gnulib will detect. --- diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index 06ca4e4132b..1b4a5fe3366 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,7 @@ +2021-05-23 Mike Frysinger + + * sim-if.c: Include unistd.h. + 2021-05-17 Mike Frysinger * sim-main.h (struct sim_state): Delete. diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 15a4018b5b7..cea499d1daa 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -30,6 +30,7 @@ along with this program. If not, see . */ #include "sim-main.h" #include #include +#include #include "sim-options.h" #include "dis-asm.h" #include "environ.h"