This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] sim: dv-cfi: include stdbool.h
- From: Mike Frysinger <vapier at gentoo dot org>
- To: gdb-patches at sourceware dot org
- Cc: toolchain-devel at blackfin dot uclinux dot org
- Date: Mon, 11 Jul 2011 14:58:13 -0400
- Subject: [PATCH] sim: dv-cfi: include stdbool.h
The dv-cfi code uses the bool type but doesn't include the stdbool.h
header. I didn't notice for Blackfin targets as the core Blackfin
header will include stdbool.h, but most targets don't do this.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-07-11 Mike Frysinger <vapier@gentoo.org>
* dv-cfi.c: Include stdbool.h.
---
sim/common/dv-cfi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sim/common/dv-cfi.c b/sim/common/dv-cfi.c
index 42d868c..a1ecaf9 100644
--- a/sim/common/dv-cfi.c
+++ b/sim/common/dv-cfi.c
@@ -27,6 +27,7 @@
#include <math.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdbool.h>
#include <unistd.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
--
1.7.6