cyclictest: Fix BUILD failure for GCC_VER < 14
PATCH v2 1/1 cyclictest: Fix BUILD failure for GCC_VER < 14
timerthread() uses bool, true, and false. Those are keywords in C23, which became GCC's default in GCC 15 (-std=gnu23), so the file compiles there without stdbool.h. With the earlier versions of GCC the default is gnu17, where they are provided by <stdbool.h>, and the build fails without it.
Fixes 98fcd661ac59 (cyclictest: Acquire a lock before invoking pthread_cond_signal())
Signed-off-by Suneeth D <[email protected]>
Reviewed-by Sebastian Andrzej Siewior <[email protected]>
---
Changes since v1 ---> v2:
* Modify commit message to include Tomas Glozar's note on default changes happened since GCC 15.
based on: fd45df830803dd7f26d2ca8bdcf05fd7e0d62ae8 (rt-tests/main)
src/cyclictest/cyclictest.c | 1 + 1 file changed, 1 insertion(+)
src/cyclictest/cyclictest.c +1 -0
@@ -15,6 +15,7 @@#include <stdlib.h> #include <stdint.h> #include <stdarg.h> +#include <stdbool.h> #include <unistd.h> #include <fcntl.h> #include <getopt.h>
Signature · 1 line
2.43.0