rt-thread/bsp/stm32f429-apollo$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build/Libraries/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.o
In file included from /mnt/d/works/rt-thread/components/dfs/filesystems/net/select/sys/select.h:28:0,
from /usr/arm-none-eabi/include/sys/types.h:68,
from /usr/arm-none-eabi/include/stdio.h:61,
from Libraries/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:50,
from Libraries/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:47,
from drivers/stm32f4xx_hal_conf.h:253,
from Libraries/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:48,
from Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:252,
from Libraries/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c:67:
/mnt/d/works/rt-thread/components/dfs/include/dfs_select.h:10:22: error: unknown type name 'fd_set'
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
^~~~~~
/mnt/d/works/rt-thread/components/dfs/include/dfs_select.h:10:39: error: unknown type name 'fd_set'
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
^~~~~~
/mnt/d/works/rt-thread/components/dfs/include/dfs_select.h:10:57: error: unknown type name 'fd_set'
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
^~~~~~
scons: *** [build/Libraries/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.o] Error 1
scons: building terminated because of errors.
imxrt的bsp也有类似的错误。似乎和POSIX select()有关