[PATCH] include stdbool.h for "bool" types

Mike Frysinger vapier at gentoo.org
Sat Dec 10 20:54:00 UTC 2011

Current build fails due to missing stdbool.h include:
strace.c:102:1: error: unknown type name 'bool'
strace.c: In function 'die_out_of_memory':
strace.c:269:2: error: unknown type name 'bool'

Signed-off-by: Mike Frysinger <vapier at gentoo.org>

	* strace.c: Include <stdbool.h>
 strace.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/strace.c b/strace.c
index 8f8c74c..8e73a00 100644
--- a/strace.c
+++ b/strace.c
@@ -34,6 +34,7 @@
 #include <sys/types.h>
 #include <stdarg.h>
+#include <stdbool.h>
 #include <signal.h>
 #include <errno.h>
 #include <sys/param.h>

More information about the Strace-devel mailing list