diff --git a/components/net/lwip-2.1/porting/include/arch/cc.h b/components/net/lwip-2.1/porting/include/arch/cc.h index c2eebaf5a3fdeee174d3b524567b43632db69686..64e364fa8331a44bab571b461cc11e50a3267b4a 100644 --- a/components/net/lwip-2.1/porting/include/arch/cc.h +++ b/components/net/lwip-2.1/porting/include/arch/cc.h @@ -44,7 +44,6 @@ #include #include #include "securec.h" -#include "log.h" #include "memory_pool.h" #ifdef htons @@ -62,6 +61,7 @@ #define LWIP_DNS_API_DEFINE_ERRORS 0 #define LWIP_DNS_API_DEFINE_FLAGS 0 #define LWIP_DNS_API_DECLARE_STRUCTS 0 +#define LWIP_DNS_API_DECLARE_H_ERRNO 0 #ifndef __SIZEOF_POINTER__ #define __SIZEOF_POINTER__ 4 // 32 bit system diff --git a/components/net/lwip-2.1/porting/include/lwip/netdb.h b/components/net/lwip-2.1/porting/include/lwip/netdb.h index 7172ea843eb1ae7e75ad9499f47393e6985a3596..aea2dbc9d206d9ab22ddb7ce6d4047f03e965f3a 100644 --- a/components/net/lwip-2.1/porting/include/lwip/netdb.h +++ b/components/net/lwip-2.1/porting/include/lwip/netdb.h @@ -35,8 +35,4 @@ #include #include_next -#ifdef h_errno -#undef h_errno -#endif - #endif /* _LWIP_PORTING_NETDB_H_ */ diff --git a/components/net/test/lwip_test.h b/components/net/test/lwip_test.h index 9e190df9f2a58c7e0146261ce7b75fc1aa70ef82..9b0894aa4047480bd5b06db4cff58d460c2a12ec 100644 --- a/components/net/test/lwip_test.h +++ b/components/net/test/lwip_test.h @@ -36,7 +36,6 @@ #include "lwip/sockets.h" #include #include -#include "log.h" #include "securec.h" #ifdef __cplusplus diff --git a/components/net/test/net_socket_test_002.c b/components/net/test/net_socket_test_002.c index b08efb008a34e311be120632067fef6d006e850f..2a225872e2e904145c9c71b5b416977e3fd3f07b 100644 --- a/components/net/test/net_socket_test_002.c +++ b/components/net/test/net_socket_test_002.c @@ -38,7 +38,6 @@ #define TEST_CASE 120 static char g_buf[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); void UdpTestTask(void *p) { diff --git a/components/net/test/net_socket_test_003.c b/components/net/test/net_socket_test_003.c index 120d58224f03e13c44f6209114f94e05bab1dbce..86854d2eff86874883d2309e194be93e343e9f13 100644 --- a/components/net/test/net_socket_test_003.c +++ b/components/net/test/net_socket_test_003.c @@ -39,7 +39,6 @@ #define TEST_CASE 130 static char g_buf[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); static int SampleTcpServer() { diff --git a/components/net/test/net_socket_test_007.c b/components/net/test/net_socket_test_007.c index 70845d1f1a911d54422f452dd4481f9fac2b3b16..bb4d6c9dceaa077ddf0771eedfa74b564396ca4a 100644 --- a/components/net/test/net_socket_test_007.c +++ b/components/net/test/net_socket_test_007.c @@ -40,7 +40,6 @@ static char g_buf_temp[BUF_SIZE + 1] = { 0 }; #define SEND_UDP_COUNT 10000 // send count #define TEST_CASE 170 -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); static void UdpTestMoreTask(void *p) { (void)p; diff --git a/components/net/test/net_socket_test_008.c b/components/net/test/net_socket_test_008.c index 6248d53d74ea994eb41b1f273f297748184bfeb4..f46106a87a80728ff33fc0d8cac3a93c9f2a7a98 100644 --- a/components/net/test/net_socket_test_008.c +++ b/components/net/test/net_socket_test_008.c @@ -41,8 +41,6 @@ static char g_serverSendBuf[BUF_SIZE + 1] = { 0 }; static char g_clientRecvBuf[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); - static void InitMsgBuf() { int i; diff --git a/components/net/test/net_socket_test_009.c b/components/net/test/net_socket_test_009.c index 282d1a10eee4762950643c2944c1225d77e956b1..95b678f423fde2b76b3ab9e208fd88a15c615a9c 100644 --- a/components/net/test/net_socket_test_009.c +++ b/components/net/test/net_socket_test_009.c @@ -43,8 +43,6 @@ static char g_buf[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); - static int SampleTcpServer() { #if LWIP_SOCKET_SELECT diff --git a/components/net/test/net_socket_test_010.c b/components/net/test/net_socket_test_010.c index 9b5d8434f5e2a35d22e6c351e940d4f3afb37d21..354cbbd8f257487defbe87ab7f86a36c6d627cbb 100644 --- a/components/net/test/net_socket_test_010.c +++ b/components/net/test/net_socket_test_010.c @@ -43,8 +43,6 @@ #define TIME_OUT (1000 * 10) // timeout 10s static char g_buf[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); - static int SampleTcpServer() { #if LWIP_SOCKET_POLL diff --git a/components/net/test/net_socket_test_012.c b/components/net/test/net_socket_test_012.c index 630735356db9c45ebbe746be117ed92abaab2ed8..3385f3377a1932481c539a45134e4e75aa481621 100755 --- a/components/net/test/net_socket_test_012.c +++ b/components/net/test/net_socket_test_012.c @@ -45,7 +45,6 @@ static int g_portClient = STACK_PORT_TCP_DUP_START; static char g_bufServer[BUF_SIZE + 1] = { 0 }; static char g_bufClient[BUF_SIZE + 1] = { 0 }; -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); static int SampleTcpServer() { diff --git a/components/net/test/net_socket_test_013.c b/components/net/test/net_socket_test_013.c index 325393ace19b35562fd661d0ffe861c57e53af6a..ccf7ba3bdb95b90b6b7efc031f732ec05bc08d3c 100755 --- a/components/net/test/net_socket_test_013.c +++ b/components/net/test/net_socket_test_013.c @@ -38,8 +38,6 @@ #define STACK_PORT_TCP_LONG 2231 #define TCP_LONG_BUF_SIZE (2 * 1024) -extern sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stackSize, int prio); - static int SampleTcpServer() { int sfd, lsfd; diff --git a/kal/posix/musl_src/network/h_errno.c b/kal/posix/musl_src/network/h_errno.c new file mode 100644 index 0000000000000000000000000000000000000000..8c7082c2d959e7b685f76ba2c5c35305736774c2 --- /dev/null +++ b/kal/posix/musl_src/network/h_errno.c @@ -0,0 +1,9 @@ +#include + +#undef h_errno +int h_errno; + +int *__h_errno_location(void) +{ + return &h_errno; +}