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

Dmitry V. Levin ldv at altlinux.org
Sun Dec 18 20:14:17 UTC 2011


On Sat, Dec 10, 2011 at 03:54:00PM -0500, Mike Frysinger wrote:
> 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>

Well, this is really odd because stdbool.h is already included via defs.h:

$ git grep -i stdbool
ChangeLog-CVS:	* configure.ac: Add AC_HEADER_STDBOOL.
ChangeLog-CVS:	* defs.h [HAVE_STDBOOL_H]: #include <stdbool.h>.
configure.ac:AC_HEADER_STDBOOL
defs.h:#ifdef HAVE_STDBOOL_H
defs.h:#include <stdbool.h>

I wonder why it doesn't work for you.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20111219/eb3297d0/attachment.bin>


More information about the Strace-devel mailing list