From 7ded4c7ef3f38d147cabc3d7df4e7d4a6268d859 Mon Sep 17 00:00:00 2001 From: "Shencb@123" <1944340417@qq.com> Date: Sun, 1 Sep 2024 20:15:29 +0800 Subject: [PATCH] support clang --- bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch | 2 +- sysstat.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch b/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch index 87eee5f..ffbfc2f 100644 --- a/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch +++ b/bugfix-sysstat-10.1.5-read-ttyAMA-first-for-arm64.patch @@ -41,7 +41,7 @@ index 68e2799..8ccfec4 100644 - return 0; + if ((fp = fopen(TTYAMA, "r")) == NULL) { + if ((fp = fopen(SERIAL, "r")) == NULL) { -+ return; ++ return 0; + } + } diff --git a/sysstat.spec b/sysstat.spec index 8a6f518..f52b4a8 100644 --- a/sysstat.spec +++ b/sysstat.spec @@ -1,6 +1,6 @@ Name: sysstat Version: 12.7.5 -Release: 2 +Release: 3 Summary: System performance tools for the Linux operating system License: GPLv2+ URL: http://sebastien.godard.pagesperso-orange.fr/ @@ -88,6 +88,9 @@ fi %{_mandir}/man*/* %changelog +* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 12.7.5-3 +- Fix patch + * Thu Feb 29 2024 zhangliangpengkun - 12.7.5-2 - Fix the incorrect command 'is-enable' to 'is-enabled'. -- Gitee