From e82a36be9a4bb2b27379b2b3862c5ff09cdfab8b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 23 May 2021 00:41:04 -0400 Subject: [PATCH] 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. --- sim/cris/ChangeLog | 4 ++++ sim/cris/sim-if.c | 1 + 2 files changed, 5 insertions(+) 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" -- 2.30.2