修复SoftBusSocketFdIsset在M核RISCV32架构的newlib情况下设置的问题

fix #I52ACL

Signed-off-by: 大仙 <leicx@digitalchina.com>
This commit is contained in:
大仙 2022-05-20 16:55:27 +08:00
parent a5e651cb01
commit c6958aa181
1 changed files with 7 additions and 0 deletions

View File

@ -46,4 +46,11 @@
#include_next <sys/select.h> #include_next <sys/select.h>
#ifdef LOSCFG_ARCH_RISCV
#ifdef FD_ISSET(d, s)
#undef FD_ISSET(d, s)
#define FD_ISSET(d, s) !!((s)->fds_bits[(d)/(8*sizeof(long))] & (1UL<<((d)%(8*sizeof(long)))))
#endif
#endif
#endif //_ADAPT_SYS_SELECT_H #endif //_ADAPT_SYS_SELECT_H