linux unknown编码,github拉的3.0代码,linux+gcc编译报错:error: unknown type name 'fd_set

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()有关

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值