1 Star 0 Fork 14

lvxiaoqian/hadoop-3.1

forked from src-openEuler/hadoop-3.1 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-sys_errlist-undeclared.patch 990 Bytes
一键复制 编辑 原始数据 按行查看 历史
王歌 提交于 2021-05-13 10:05 . init package
From 11b1ee8aa01718d68dd332f08b27d4feffc3da31 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Fri, 26 Mar 2021 10:18:23 +0800
Subject: [PATCH] modify
---
.../hadoop-common/src/main/native/src/exception.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/exception.c b/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
index fc072e8..a678688 100644
--- a/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
+++ b/hadoop-common-project/hadoop-common/src/main/native/src/exception.c
@@ -110,15 +110,6 @@ jthrowable newIOException(JNIEnv* env, const char *fmt, ...)
const char* terror(int errnum)
{
-
-#if defined(__sun)
-// MT-Safe under Solaris which doesn't support sys_errlist/sys_nerr
return strerror(errnum);
-#else
- if ((errnum < 0) || (errnum >= sys_nerr)) {
- return "unknown error.";
- }
- return sys_errlist[errnum];
-#endif
}
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lvxiaoqian/hadoop-3.1.git
git@gitee.com:lvxiaoqian/hadoop-3.1.git
lvxiaoqian
hadoop-3.1
hadoop-3.1
master

搜索帮助