mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
[net][sal] Remove DFS dependencies in the SAL
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user