diff options
| author | MurphyZhao <[email protected]> | 2018-11-01 18:20:03 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2018-11-01 18:21:41 +0800 |
| commit | 58a6b51236498de0bf8cbdb6ee7b172ebc442314 (patch) | |
| tree | 4adb5031a25f3403b3027c42db54cc8189da10f8 /components/dfs | |
| parent | f08039ff6fc0c833bc7b257685e796e21482cc58 (diff) | |
[components][dfs] AND [components][net][sal] 适配 LWIP210
Signed-off-by: MurphyZhao <[email protected]>
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/include/dfs_poll.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/dfs/include/dfs_poll.h b/components/dfs/include/dfs_poll.h index 3728b86248..066363d6fc 100644 --- a/components/dfs/include/dfs_poll.h +++ b/components/dfs/include/dfs_poll.h @@ -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__ */ |
