[components][dfs] 移除冗余代码

[components][net] 修复 Kconfig
[components][net][sal] 还原对 SAL 框架的修改,在 proto_ops 结构体实例赋值位置修改

Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
MurphyZhao
2018-11-02 10:23:29 +08:00
parent 58a6b51236
commit c3cc7a29c8
4 changed files with 4 additions and 13 deletions

View File

@@ -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__ */