From 81e028105d89db1f009c33483f5b9f1c8f7e2cf9 Mon Sep 17 00:00:00 2001 From: MurphyZhao Date: Thu, 11 Apr 2019 14:27:27 +0800 Subject: [PATCH] =?UTF-8?q?[components/net/lwip-1.4.1]=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=AF=B9=20errno.h=20=E7=9A=84=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MurphyZhao --- components/net/lwip-1.4.1/src/arch/include/arch/cc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/net/lwip-1.4.1/src/arch/include/arch/cc.h b/components/net/lwip-1.4.1/src/arch/include/arch/cc.h index e0ad8cf588..d85bf13441 100644 --- a/components/net/lwip-1.4.1/src/arch/include/arch/cc.h +++ b/components/net/lwip-1.4.1/src/arch/include/arch/cc.h @@ -55,10 +55,8 @@ typedef uintptr_t mem_ptr_t; #define X32_F "lx" #ifdef RT_USING_LIBC -#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) -#include -#else -#include +#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__) + /* some errno not defined in newlib */ #define ENSRNOTFOUND 163 /* Domain name not found */ /* WARNING: ESHUTDOWN also not defined in newlib. We chose -- GitLab