mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 09:32:28 +08:00
[components][dfs] 移除冗余代码
[components][net] 修复 Kconfig [components][net][sal] 还原对 SAL 框架的修改,在 proto_ops 结构体实例赋值位置修改 Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
#define POLLHUP (0x08)
|
||||
#define POLLNVAL (0x10)
|
||||
|
||||
#define POLLMASK_DEFAULT (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
|
||||
|
||||
typedef unsigned int nfds_t;
|
||||
|
||||
struct pollfd
|
||||
@@ -39,12 +37,10 @@ struct pollfd
|
||||
short events;
|
||||
short revents;
|
||||
};
|
||||
#endif /* !defined(POLLIN) && !defined(POLLOUT) */
|
||||
|
||||
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
#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 /* DFS_POLL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user