diff options
| author | MurphyZhao <[email protected]> | 2019-04-11 14:27:27 +0800 |
|---|---|---|
| committer | MurphyZhao <[email protected]> | 2019-04-11 14:28:59 +0800 |
| commit | 81e028105d89db1f009c33483f5b9f1c8f7e2cf9 (patch) | |
| tree | 494cac5b0eabb50189fcaf830f5a9c72aaa2a388 | |
| parent | 5885fc414f02fce4be55d26830aa95e7a460048c (diff) | |
[components/net/lwip-1.4.1] 移除对 errno.h 的引入
Signed-off-by: MurphyZhao <[email protected]>
| -rw-r--r-- | components/net/lwip-1.4.1/src/arch/include/arch/cc.h | 6 |
1 files 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 <sys/errno.h> -#else -#include <errno.h> +#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 |
