mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
This fixes the following compile error:
```
-Map=./build/binaries/sama7g5-sdcardboot-uboot-4.0.10.map --cref -static -z noexecstack --no-warn-rwx-segments -T elf32-littlearm.lds --gc-sections -Ttext 0x100000
CC device/sama7g5/sama7g5.c
In file included from include/string.h:10,
from device/sama7g5/sama7g5.c:12:
include/types.h:23:23: error: 'bool' cannot be defined via 'typedef'
23 | typedef unsigned char bool;
| ^~~~
include/types.h:23:23: note: 'bool' is a keyword with '-std=c23' onwards
include/types.h:23:1: warning: useless type name in empty declaration
23 | typedef unsigned char bool;
| ^~~~~~~
make[4]: *** [Makefile:371: build/device/sama7g5/sama7g5.o] Error 1
```
Upstream commit: https://github.com/linux4sam/at91bootstrap/commit/32bbb4f73a9f3e94326f709413c1b58baefdfbfa
Link: https://github.com/openwrt/openwrt/pull/26819
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>