Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
人间散章
rt-thread
提交
b10bef6f
R
rt-thread
项目概览
人间散章
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b10bef6f
编写于
5月 22, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[sys/errno.h] 修复lwip报错
上级
0e0e2a0f
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
20 addition
and
11 deletion
+20
-11
components/libc/compilers/common/none-gcc/sys/errno.h
components/libc/compilers/common/none-gcc/sys/errno.h
+1
-3
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
+4
-4
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
+12
-0
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
+3
-4
未找到文件。
components/libc/compilers/common/none-gcc/sys/errno.h
浏览文件 @
b10bef6f
...
@@ -37,10 +37,8 @@ defined in armcc/errno.h
...
@@ -37,10 +37,8 @@ defined in armcc/errno.h
#define ERROR_BASE_NO 0
#define ERROR_BASE_NO 0
#endif
#endif
#if !defined(_WIN32)
#if defined(__CC_ARM) || defined(__IAR_SYSTEMS_ICC__)
#include <errno.h>
#include <errno.h>
#define EPERM (ERROR_BASE_NO + 1)
#define EPERM (ERROR_BASE_NO + 1)
#define ENOENT (ERROR_BASE_NO + 2)
#define ENOENT (ERROR_BASE_NO + 2)
#define ESRCH (ERROR_BASE_NO + 3)
#define ESRCH (ERROR_BASE_NO + 3)
...
...
components/net/lwip-1.4.1/src/arch/include/arch/cc.h
浏览文件 @
b10bef6f
...
@@ -54,16 +54,16 @@ typedef uintptr_t mem_ptr_t;
...
@@ -54,16 +54,16 @@ typedef uintptr_t mem_ptr_t;
#define S32_F "ld"
#define S32_F "ld"
#define X32_F "lx"
#define X32_F "lx"
#ifdef RT_USING_LIBC
#include <sys/errno.h>
#if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
/* some errno not defined in newlib */
/* some errno not defined in newlib */
#ifndef ENSRNOTFOUND
#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
180 here because the number "108" which is used
180 here because the number "108" which is used
in arch.h has been assigned to another error code. */
in arch.h has been assigned to another error code. */
#endif
#ifndef ESHUTDOWN
#define ESHUTDOWN 180
#define ESHUTDOWN 180
#endif
/* __CC_ARM/__IAR_SYSTEMS_ICC__ */
#endif
#endif
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
...
...
components/net/lwip-2.0.2/src/arch/include/arch/cc.h
浏览文件 @
b10bef6f
...
@@ -45,6 +45,18 @@
...
@@ -45,6 +45,18 @@
#define S32_F "ld"
#define S32_F "ld"
#define X32_F "lx"
#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))
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#include <sys/time.h>
#include <sys/time.h>
#define LWIP_TIMEVAL_PRIVATE 0
#define LWIP_TIMEVAL_PRIVATE 0
...
...
components/net/lwip-2.1.2/src/arch/include/arch/cc.h
浏览文件 @
b10bef6f
...
@@ -45,18 +45,17 @@
...
@@ -45,18 +45,17 @@
#define S32_F "ld"
#define S32_F "ld"
#define X32_F "lx"
#define X32_F "lx"
#ifdef RT_USING_LIBC
#include <sys/errno.h>
#include <sys/errno.h>
/* some errno not defined in newlib */
#ifndef ENSRNOTFOUND
#ifndef ENSRNOTFOUND
#define ENSRNOTFOUND 163
/* Domain name not found */
#define ENSRNOTFOUND 163
/* Domain name not found */
#endif
#ifndef ESHUTDOWN
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
/* WARNING: ESHUTDOWN also not defined in newlib. We chose
180 here because the number "108" which is used
180 here because the number "108" which is used
in arch.h has been assigned to another error code. */
in arch.h has been assigned to another error code. */
#endif
#ifndef ESHUTDOWN
#define ESHUTDOWN 180
#define ESHUTDOWN 180
#endif
#endif
#endif
/* RT_USING_LIBC */
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#if defined(RT_USING_LIBC) || defined(RT_LIBC_USING_TIME) || (defined( __GNUC__ ) && !defined(__ARMCC_VERSION))
#include <sys/time.h>
#include <sys/time.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录