[PATCH 3/4] sim: include stdint.h when needed
Mike Frysinger
vapier@gentoo.org
Sun Dec 5 03:10:14 GMT 2021
Avoid implicit include deps with this to help untangle sim headers
so we can get rid of arch-specific sim-main.h.
---
sim/common/callback.c | 1 +
sim/common/sim-io.c | 1 +
sim/common/sim-io.h | 1 +
3 files changed, 3 insertions(+)
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 105488db262f..ed4d51d8d398 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -29,6 +29,7 @@
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c
index a278d6ec127d..8c40f7a0e73e 100644
--- a/sim/common/sim-io.c
+++ b/sim/common/sim-io.c
@@ -27,6 +27,7 @@
#include <fcntl.h>
#endif
#include <stdarg.h>
+#include <stdint.h>
#include <stdlib.h>
#if HAVE_UNISTD_H
#include <unistd.h>
diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h
index c88adcde0f7d..2fc22f332ccc 100644
--- a/sim/common/sim-io.h
+++ b/sim/common/sim-io.h
@@ -24,6 +24,7 @@
#define SIM_IO_H
#include <stdarg.h>
+#include <stdint.h>
#include <sys/stat.h>
#include <sys/types.h>
--
2.33.0
More information about the Gdb-patches
mailing list