Skip to content

Commit

Permalink
nuttx/elf.h: Fix build error with unknown type name 'bool'.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cuiziweizw committed Oct 14, 2024
1 parent 11e0262 commit e575f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/nuttx/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <elf.h>
#include <arch/elf.h>
#include <stdbool.h>

/****************************************************************************
* Pre-processor Definitions
Expand Down

0 comments on commit e575f69

Please sign in to comment.