Skip to content

Commit 8d7ee79

Browse files
cuiziweizwxiaoxiang781216
authored andcommitted
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]>
1 parent ca189cc commit 8d7ee79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nuttx/elf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include <elf.h>
3131
#include <arch/elf.h>
32+
#include <stdbool.h>
3233

3334
/****************************************************************************
3435
* Pre-processor Definitions

0 commit comments

Comments
 (0)