]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support: fix build failure due to lack of stdbool.h
authorYury Khrustalev <yury.khrustalev@arm.com>
Wed, 17 Sep 2025 10:45:09 +0000 (11:45 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Wed, 17 Sep 2025 12:02:01 +0000 (13:02 +0100)
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>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
support/check_mem_access.h
support/support_mem_access.c

index 116e1f7c8aa71db11e4094b583aaa042779e9e90..424fa40c3aeeb182afc4b4f2c0eec99dea07153c 100644 (file)
@@ -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
index aa5127b41f31bf788dc6b013e096f65f0c8d1251..e5a16661069582afcd460a5df4730d82b5025153 100644 (file)
 
 #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