!694 修复RISCV32 newlib情况下FD_ISSET设置问题

Merge pull request !694 from 大仙/master
This commit is contained in:
openharmony_ci 2022-05-24 11:08:44 +00:00 committed by Gitee
commit 18f65ae0b3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 7 additions and 0 deletions

View File

@ -46,4 +46,11 @@
#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