* [PATCH/committed] sim: cris: add unistd.h for environ decl
@ 2021-05-23 21:39 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-05-23 21:39 UTC (permalink / raw)
To: gdb-patches
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 06ca4e4132b3..1b4a5fe33662 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 15a4018b5b70..cea499d1daa9 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"
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-23 21:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 21:39 [PATCH/committed] sim: cris: add unistd.h for environ decl Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).