mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 15:53:32 +08:00
[sys/errno.h] 修复lwip报错
This commit is contained in:
parent
0e0e2a0f95
commit
b10bef6f24
@ -37,10 +37,8 @@ defined in armcc/errno.h
|
||||
#define ERROR_BASE_NO 0
|
||||
#endif
|
||||
|
||||
#if !defined(_WIN32)
|
||||
|
||||
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
|
||||
#include <errno.h>
|
||||
|
||||
#define EPERM (ERROR_BASE_NO + 1)
|
||||
#define ENOENT (ERROR_BASE_NO + 2)
|
||||
#define ESRCH (ERROR_BASE_NO + 3)
|
||||
|
@ -54,16 +54,16 @@ typedef uintptr_t mem_ptr_t;
|
||||
#define S32_F "ld"
|
||||
#define X32_F "lx"
|
||||
|
||||
#ifdef RT_USING_LIBC
|
||||
#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
|
||||
|
||||
#include <sys/errno.h>
|
||||
/* some errno not defined in newlib */
|
||||
#ifndef ENSRNOTFOUND
|
||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
||||
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
||||
180 here because the number "108" which is used
|
||||
in arch.h has been assigned to another error code. */
|
||||
#endif
|
||||
#ifndef ESHUTDOWN
|
||||
#define ESHUTDOWN 180
|
||||
#endif /* __CC_ARM/__IAR_SYSTEMS_ICC__ */
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
|
||||
|
@ -45,6 +45,18 @@
|
||||
#define S32_F "ld"
|
||||
#define X32_F "lx"
|
||||
|
||||
#include <sys/errno.h>
|
||||
/* some errno not defined in newlib */
|
||||
#ifndef ENSRNOTFOUND
|
||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
||||
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
||||
180 here because the number "108" which is used
|
||||
in arch.h has been assigned to another error code. */
|
||||
#endif
|
||||
#ifndef ESHUTDOWN
|
||||
#define ESHUTDOWN 180
|
||||
#endif
|
||||
|
||||
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
|
||||
#include <sys/time.h>
|
||||
#define LWIP_TIMEVAL_PRIVATE 0
|
||||
|
@ -45,18 +45,17 @@
|
||||
#define S32_F "ld"
|
||||
#define X32_F "lx"
|
||||
|
||||
#ifdef RT_USING_LIBC
|
||||
#include <sys/errno.h>
|
||||
/* some errno not defined in newlib */
|
||||
#ifndef ENSRNOTFOUND
|
||||
#define ENSRNOTFOUND 163 /* Domain name not found */
|
||||
#endif
|
||||
#ifndef ESHUTDOWN
|
||||
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
|
||||
180 here because the number "108" which is used
|
||||
in arch.h has been assigned to another error code. */
|
||||
#endif
|
||||
#ifndef ESHUTDOWN
|
||||
#define ESHUTDOWN 180
|
||||
#endif
|
||||
#endif /* RT_USING_LIBC */
|
||||
|
||||
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
|
||||
#include <sys/time.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user