[components][dfs] AND [components][net][sal] 适配 LWIP210

Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
MurphyZhao
2018-11-01 18:21:41 +08:00
parent f08039ff6f
commit 58a6b51236
3 changed files with 33 additions and 4 deletions
+7 -2
View File
@@ -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__ */