Merge pull request #31 from Lawlieta/master

【适配】SAL 组件对于 DFS 依赖改动
master
朱天龙 (Armink) 7 years ago committed by GitHub
commit d94129cfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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