aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-23 00:41:04 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-23 17:39:16 -0400
commite82a36be9a4bb2b27379b2b3862c5ff09cdfab8b (patch)
tree7a73472fc35c03a0202bf38bc9fc659d62322cef /sim
parent01d3ae40df73e8996a7716538e254dd1be2141ca (diff)
downloadgdb-e82a36be9a4bb2b27379b2b3862c5ff09cdfab8b.zip
gdb-e82a36be9a4bb2b27379b2b3862c5ff09cdfab8b.tar.gz
gdb-e82a36be9a4bb2b27379b2b3862c5ff09cdfab8b.tar.bz2
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.
Diffstat (limited to 'sim')
-rw-r--r--sim/cris/ChangeLog4
-rw-r--r--sim/cris/sim-if.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog
index 06ca4e4..1b4a5fe 100644
--- a/sim/cris/ChangeLog
+++ b/sim/cris/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-23 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c: Include unistd.h.
+
2021-05-17 Mike Frysinger <vapier@gentoo.org>
* sim-main.h (struct sim_state): Delete.
diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c
index 15a4018..cea499d 100644
--- a/sim/cris/sim-if.c
+++ b/sim/cris/sim-if.c
@@ -30,6 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-main.h"
#include <stdlib.h>
#include <errno.h>
+#include <unistd.h>
#include "sim-options.h"
#include "dis-asm.h"
#include "environ.h"