4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 13:13:31 +08:00

[components/net/lwip-1.4.1] 移除对 errno.h 的引入

Signed-off-by: MurphyZhao <d2014zjt@163.com>
This commit is contained in:
MurphyZhao 2019-04-11 14:27:27 +08:00
parent 5885fc414f
commit 81e028105d

View File

@ -55,10 +55,8 @@ typedef uintptr_t mem_ptr_t;
#define X32_F "lx" #define X32_F "lx"
#ifdef RT_USING_LIBC #ifdef RT_USING_LIBC
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__) #if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
#include <sys/errno.h>
#else
#include <errno.h>
/* some errno not defined in newlib */ /* some errno not defined in newlib */
#define ENSRNOTFOUND 163 /* Domain name not found */ #define ENSRNOTFOUND 163 /* Domain name not found */
/* WARNING: ESHUTDOWN also not defined in newlib. We chose /* WARNING: ESHUTDOWN also not defined in newlib. We chose