!19 [sync] PR-15: 修复申威架构编译失败

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-03-26 03:38:23 +00:00 committed by Gitee
commit 98c0cade56
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ diff -Naur lshw-B.02.19.2.org/src/core/cpuid.cc lshw-B.02.19.2.sw/src/core/cpuid
__ID("@(#) $Id$");
-#if defined(__i386__) || defined(__alpha__)
+#if defined(__i386__) || defined(__alpha__) || deined(__sw_64__)
+#if defined(__i386__) || defined(__alpha__) || defined(__sw_64__)
static hwNode *getcache(hwNode & node,
int n = 0)

View File

@ -1,6 +1,6 @@
Name: lshw
Version: B.02.19.2
Release: 2
Release: 3
Summary: Hardware lister
License: GPLv2
URL: http://ezix.org/project/wiki/HardwareLiSter
@ -78,6 +78,9 @@ src/lshw -json -disable usb -disable pcmcia -disable isapnp \
%{_mandir}/man1/lshw.1.gz
%changelog
* Mon Apr 24 2023 guoqinglan <guoqinglan@kylinsec.com.cn> - B.02.19.2-3
- fix build error for sw_64
* Mon Oct 24 2022 wuzx<wuzx1226@qq.com> - B.02.19.2-2
- add sw64 patch