修复SoftBusSocketFdIsset在M核RISCV32架构的newlib情况下设置的问题
fix #I52ACL Signed-off-by: 大仙 <leicx@digitalchina.com>
This commit is contained in:
parent
a5e651cb01
commit
c6958aa181
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue