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

Dmitry V. Levin ldv at altlinux.org
Sun Dec 11 00:07:52 UTC 2011

On Sat, Dec 10, 2011 at 03:54:00PM -0500, Mike Frysinger wrote:
> Current build fails due to missing stdbool.h include:

I surely see no build failures on my side, but it depends on system

> 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'

$ git grep -w bool
strace.c:static bool daemonized_tracer = 0;
strace.c:	static bool recursed = 0;

I suppose we should rather change them to "int".

-------------- 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/20111211/add22e54/attachment.bin>

More information about the Strace-devel mailing list