Skip to content

Commit 2d965c1

Browse files
andrealmeidt-8ch
authored andcommitted
tools/nolibc: add stdbool.h to nolibc includes
Otherwise tests compiled with only "-include nolibc.h" will fail with "error: unknown type name 'bool'", even though a stdbool.h is available from nolibc. Fixes: ae1f550 ("tools/nolibc: add stdbool.h header") Fixes: f2662ec ("selftests: kselftest: Create ksft_print_dbg_msg()") Reported-by: Mark Brown <broonie@kernel.org> Closes: https://lore.kernel.org/lkml/833f5ae5-190e-47ec-9ad9-127ad166c80c@sirena.org.uk/ Signed-off-by: André Almeida <andrealmeid@igalia.com> [Thomas: add Fixes tags and massage commit message a bit] Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
1 parent 0ff52df commit 2d965c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/include/nolibc/nolibc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
#include "sched.h"
117117
#include "signal.h"
118118
#include "unistd.h"
119+
#include "stdbool.h"
119120
#include "stdio.h"
120121
#include "stdlib.h"
121122
#include "string.h"

0 commit comments

Comments
 (0)