Skip to content

Commit b676d72

Browse files
committed
[lwIP] the errno definition of rt_libc.h is used by default.
1 parent 366e28f commit b676d72

File tree

1 file changed

+0
-16
lines changed
  • components/net/lwip-2.0.2/src/arch/include/arch

1 file changed

+0
-16
lines changed

components/net/lwip-2.0.2/src/arch/include/arch/cc.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@
4545
#define S32_F "ld"
4646
#define X32_F "lx"
4747

48-
#ifdef RT_USING_LIBC
49-
#if defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__IAR_SYSTEMS_ICC__)
50-
#include <sys/errno.h>
51-
#else
52-
#include <errno.h>
53-
/* some errno not defined in newlib */
54-
#define ENSRNOTFOUND 163 /* Domain name not found */
55-
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
56-
180 here because the number "108" which is used
57-
in arch.h has been assigned to another error code. */
58-
#define ESHUTDOWN 180
59-
#endif /* __CC_ARM/__IAR_SYSTEMS_ICC__ */
60-
#else
61-
#define LWIP_PROVIDE_ERRNO
62-
#endif
63-
6448
#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC)
6549
#include <sys/time.h>
6650
#define LWIP_TIMEVAL_PRIVATE 0

0 commit comments

Comments
 (0)