summaryrefslogtreecommitdiff
path: root/components/net/lwip-2.0.2
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-05-22 02:50:35 +0800
committerMeco Man <[email protected]>2021-05-22 02:50:35 +0800
commita5f7635f31b237ad8ce09610ee76a75f4072e7d4 (patch)
tree970e831792484a13cc3dfc28d218ec65c6f757b1 /components/net/lwip-2.0.2
parent126af8e43c8a84d625cb9043c1fbb3d8f3016030 (diff)
remove libc_errno.h & libc_limits.h
Diffstat (limited to 'components/net/lwip-2.0.2')
-rw-r--r--components/net/lwip-2.0.2/src/arch/include/arch/cc.h2
-rw-r--r--components/net/lwip-2.0.2/src/lwipopts.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/components/net/lwip-2.0.2/src/arch/include/arch/cc.h b/components/net/lwip-2.0.2/src/arch/include/arch/cc.h
index e3014f552c..a17b162805 100644
--- a/components/net/lwip-2.0.2/src/arch/include/arch/cc.h
+++ b/components/net/lwip-2.0.2/src/arch/include/arch/cc.h
@@ -84,7 +84,7 @@ void sys_arch_assert(const char* file, int line);
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
-#include "string.h"
+#include <string.h>
#define SYS_ARCH_DECL_PROTECT(level)
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
diff --git a/components/net/lwip-2.0.2/src/lwipopts.h b/components/net/lwip-2.0.2/src/lwipopts.h
index 09bd223aa4..b334c5ac17 100644
--- a/components/net/lwip-2.0.2/src/lwipopts.h
+++ b/components/net/lwip-2.0.2/src/lwipopts.h
@@ -5,6 +5,8 @@
#define ERRNO 1
+#define LWIP_ERRNO_STDINCLUDE
+
#define LWIP_IPV4 1
#ifdef RT_USING_LWIP_IPV6