[PATCH] support: fix build failure due to lack of stdbool.h
Yury Khrustalev
yury.khrustalev@arm.com
Wed Sep 17 11:55:08 GMT 2025
On some targets using bool in support/check_mem_access.h resulted
in build error due to stdbool.h not being included, fix this.
See 9be489d77867dd2444ecc044a5f3049d1751ee85 for details.
Reported-by: Joseph Myers <josmyers@redhat.com>
---
passes regression check on aarch64 and x86
checked with build-many-glibcs.py for i686-gnu as well
base-commit: 13d67746cb
---
support/check_mem_access.h | 1 +
support/support_mem_access.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/support/check_mem_access.h b/support/check_mem_access.h
index 116e1f7c8a..424fa40c3a 100644
--- a/support/check_mem_access.h
+++ b/support/check_mem_access.h
@@ -19,6 +19,7 @@
#ifndef SUPPORT_CHECK_MEM_ACCESS_H
#define SUPPORT_CHECK_MEM_ACCESS_H
+#include <stdbool.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
diff --git a/support/support_mem_access.c b/support/support_mem_access.c
index aa5127b41f..e5a1666106 100644
--- a/support/support_mem_access.c
+++ b/support/support_mem_access.c
@@ -19,8 +19,11 @@
#include <setjmp.h>
#include <signal.h>
+#include <stddef.h>
#include <support/xsignal.h>
+#include "check_mem_access.h"
+
static sigjmp_buf sigsegv_jmp_buf;
static void
--
2.47.3
More information about the Libc-alpha
mailing list