【适配】SAL 组件对于 DFS 依赖改动

Signed-off-by: chenyong <1521761801@qq.com>
master
chenyong 7 years ago
parent 3c7cb2eb86
commit 34626da293

@ -19,13 +19,14 @@
#include <webclient.h> #include <webclient.h>
#if defined(RT_USING_DFS_NET) || defined(SAL_USING_POSIX) /* support both enable and disable "SAL_USING_POSIX" */
#if defined(RT_USING_SAL)
#include <netdb.h> #include <netdb.h>
#include <sys/socket.h> #include <sys/socket.h>
#else #else
#include <lwip/netdb.h> #include <lwip/netdb.h>
#include <lwip/sockets.h> #include <lwip/sockets.h>
#endif /* SAL_USING_POSIX */ #endif /* RT_USING_SAL */
/* default receive or send timeout */ /* default receive or send timeout */
#define WEBCLIENT_DEFAULT_TIMEO 6 #define WEBCLIENT_DEFAULT_TIMEO 6

Loading…
Cancel
Save