This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8d7ee794f4 nuttx/elf.h: Fix build error with unknown type name 'bool'.
8d7ee794f4 is described below
commit 8d7ee794f46a6ca543a3e64578bb6c3a368ce15e
Author: cuiziwei <[email protected]>
AuthorDate: Mon Aug 12 21:04:20 2024 +0800
nuttx/elf.h: Fix build error with unknown type name 'bool'.
nuttx/include/nuttx/elf.h:118:1: error: unknown type name 'bool'
118 | bool up_checkarch(FAR const Elf_Ehdr *hdr);
| ^~~~
nuttx/include/nuttx/elf.h:30:1: note: 'bool' is defined in header
'<stdbool.h>'; did you forget to '#include <stdbool.h>'?
29 | #include <arch/elf.h>
+++ |+#include <stdbool.h>
30 |
Signed-off-by: cuiziwei <[email protected]>
---
include/nuttx/elf.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/nuttx/elf.h b/include/nuttx/elf.h
index 0737f5b615..abb3c2fa6d 100644
--- a/include/nuttx/elf.h
+++ b/include/nuttx/elf.h
@@ -29,6 +29,7 @@
#include <elf.h>
#include <arch/elf.h>
+#include <stdbool.h>
/****************************************************************************
* Pre-processor Definitions