mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[components][dfs] AND [components][net][sal] 适配 LWIP210
Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#ifdef RT_USING_POSIX
|
||||
#include <sys/time.h> /* for struct timeval */
|
||||
|
||||
#if !defined(POLLIN) && !defined(POLLOUT)
|
||||
#define POLLIN (0x01)
|
||||
#define POLLRDNORM (0x01)
|
||||
#define POLLRDBAND (0x01)
|
||||
@@ -40,6 +41,10 @@ struct pollfd
|
||||
};
|
||||
|
||||
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
#endif
|
||||
#else /* !defined(POLLIN) && !defined(POLLOUT) */
|
||||
#define POLLMASK_DEFAULT (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
|
||||
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
#endif /* !defined(POLLIN) && !defined(POLLOUT) */
|
||||
#endif /* RT_USING_POSIX */
|
||||
|
||||
#endif
|
||||
#endif /* DFS_POLL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user