1 Star 0 Fork 11

nuke/man-db

forked from src-anolis-os/man-db 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-mandb-add-sw.patch 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
康后银 提交于 2023-06-28 10:03 . add sw
From ad2d12e1071ad93b932c04d87520536068d99ff2 Mon Sep 17 00:00:00 2001
From: wxiat <nijie@wxiat.com>
Date: Mon, 26 Jun 2023 17:19:38 +0800
Subject: [PATCH] add sw
Signed-off-by: wxiat <nijie@wxiat.com>
---
include/manconfig.h.in | 2 +-
src/zsoelim.l | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/manconfig.h.in b/include/manconfig.h.in
index 708341b..a07c10a 100644
--- a/include/manconfig.h.in
+++ b/include/manconfig.h.in
@@ -54,7 +54,7 @@
DEFAULT_MANROFFSEQ can be overridden by command line arguments to man, the
environment variable $MANROFFSEQ, and by the manual page being formatted. */
-#if defined (__hpux) || (defined (__alpha) && !defined(__GLIBC__))
+#if defined (__hpux) || ((defined (__alpha) ||defined (__sw_64))&& !defined(__GLIBC__))
# define DEFAULT_MANROFFSEQ "te"
#elif defined (__ultrix)
# define DEFAULT_MANROFFSEQ "t"
diff --git a/src/zsoelim.l b/src/zsoelim.l
index b3dc780..ac4ecc1 100644
--- a/src/zsoelim.l
+++ b/src/zsoelim.l
@@ -183,6 +183,11 @@ W [ \t]
_("%s:%d: warning: failed .so request"),
NAME, LINE);
printf (".so %s\n", yytext);
+#elif !defined __sw_64
+ error (OK, 0,
+ _("%s:%d: warning: failed .so request"),
+ NAME, LINE);
+ printf (".so %s\n", yytext);
#endif
BEGIN (end_request);
} else {
--
2.31.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YQTQQQ/man-db.git
git@gitee.com:YQTQQQ/man-db.git
YQTQQQ
man-db
man-db
a8

搜索帮助