diff options
| author | chenyong <[email protected]> | 2018-08-27 19:50:37 +0800 |
|---|---|---|
| committer | chenyong <[email protected]> | 2018-08-27 19:50:37 +0800 |
| commit | 6d702e579f533179e5b158a5daae6a6e78ca2d70 (patch) | |
| tree | 5136c29fb8ab6d35820bd1110d17493a0cd01614 /components/net/sal_socket/src | |
| parent | 2d894b41026e4253efd3a60184c3e5e0c17d6883 (diff) | |
[net][sal] Remove DFS dependencies in the SAL
Diffstat (limited to 'components/net/sal_socket/src')
| -rw-r--r-- | components/net/sal_socket/src/sal_socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/net/sal_socket/src/sal_socket.c b/components/net/sal_socket/src/sal_socket.c index 7b6683a69c..f43492069e 100644 --- a/components/net/sal_socket/src/sal_socket.c +++ b/components/net/sal_socket/src/sal_socket.c @@ -705,6 +705,7 @@ int sal_ioctlsocket(int socket, long cmd, void *arg) return sock->ops->ioctlsocket((int) sock->user_data, cmd, arg); } +#ifdef SAL_USING_POSIX int sal_poll(struct dfs_fd *file, struct rt_pollreq *req) { struct sal_socket *sock; @@ -723,6 +724,7 @@ int sal_poll(struct dfs_fd *file, struct rt_pollreq *req) return sock->ops->poll(file, req); } +#endif struct hostent *sal_gethostbyname(const char *name) { |
