summaryrefslogtreecommitdiff
path: root/components/net/sal_socket/impl
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/sal_socket/impl')
-rw-r--r--components/net/sal_socket/impl/af_inet_at.c4
-rw-r--r--components/net/sal_socket/impl/af_inet_lwip.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/components/net/sal_socket/impl/af_inet_at.c b/components/net/sal_socket/impl/af_inet_at.c
index fe7ad6cd13..c064283a61 100644
--- a/components/net/sal_socket/impl/af_inet_at.c
+++ b/components/net/sal_socket/impl/af_inet_at.c
@@ -20,6 +20,8 @@
#include <dfs_poll.h>
#endif
+#ifdef SAL_USING_AT
+
#ifdef SAL_USING_POSIX
static int at_poll(struct dfs_fd *file, struct rt_pollreq *req)
{
@@ -111,3 +113,5 @@ int at_inet_init(void)
return 0;
}
INIT_COMPONENT_EXPORT(at_inet_init);
+
+#endif /* SAL_USING_AT */
diff --git a/components/net/sal_socket/impl/af_inet_lwip.c b/components/net/sal_socket/impl/af_inet_lwip.c
index e20e16ffaf..41ea9ac968 100644
--- a/components/net/sal_socket/impl/af_inet_lwip.c
+++ b/components/net/sal_socket/impl/af_inet_lwip.c
@@ -30,6 +30,8 @@
#endif
#endif
+#ifdef SAL_USING_LWIP
+
#ifdef SAL_USING_POSIX
/*
* Re-define lwip socket
@@ -293,3 +295,5 @@ int lwip_inet_init(void)
return 0;
}
INIT_COMPONENT_EXPORT(lwip_inet_init);
+
+#endif /* SAL_USING_LWIP */