fix function undeclared in libdm-common.c and dev-cache.c,fix date in changelog,support clang
This commit is contained in:
parent
f6da718b2a
commit
fa38e346cb
@ -0,0 +1,37 @@
|
|||||||
|
From e5ce6e143393fe50da73eabdf32ce3dafb7b9dd7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yuncang123 <1050706328@qq.com>
|
||||||
|
Date: Sat, 7 Sep 2024 18:34:09 +0800
|
||||||
|
Subject: [PATCH] fix function undeclared in libdm-common.c and dev-cache.c
|
||||||
|
|
||||||
|
---
|
||||||
|
lib/device/dev-cache.c | 1 +
|
||||||
|
libdm/libdm-common.c | 1 +
|
||||||
|
2 files changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
|
||||||
|
index 85f9b49..ee39814 100644
|
||||||
|
--- a/lib/device/dev-cache.c
|
||||||
|
+++ b/lib/device/dev-cache.c
|
||||||
|
@@ -31,6 +31,7 @@
|
||||||
|
#include <locale.h>
|
||||||
|
/* coverity[unnecessary_header] needed for MuslC */
|
||||||
|
#include <sys/file.h>
|
||||||
|
+#include <sys/time.h>
|
||||||
|
|
||||||
|
struct dev_iter {
|
||||||
|
struct btree_iter *current;
|
||||||
|
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
|
||||||
|
index 734a012..177dc40 100644
|
||||||
|
--- a/libdm/libdm-common.c
|
||||||
|
+++ b/libdm/libdm-common.c
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <dirent.h>
|
||||||
|
+#include <syslog.h>
|
||||||
|
|
||||||
|
#ifdef UDEV_SYNC_SUPPORT
|
||||||
|
# include <sys/types.h>
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
10
lvm2.spec
10
lvm2.spec
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
Name: lvm2
|
Name: lvm2
|
||||||
Version: 2.03.21
|
Version: 2.03.21
|
||||||
Release: 12
|
Release: 13
|
||||||
Epoch: 8
|
Epoch: 8
|
||||||
Summary: Tools for logical volume management
|
Summary: Tools for logical volume management
|
||||||
License: GPLv2+ and LGPLv2.1 and BSD
|
License: GPLv2+ and LGPLv2.1 and BSD
|
||||||
@ -71,6 +71,7 @@ Patch19: 0019-fix-memleak-in-vgchange.patch
|
|||||||
Patch20: 0020-udev-create-dev-disk-by-label-symlinks-for-DM-devs-t.patch
|
Patch20: 0020-udev-create-dev-disk-by-label-symlinks-for-DM-devs-t.patch
|
||||||
Patch21: 0021-lvmcache-fix-memleaks-on-list-removal.patch
|
Patch21: 0021-lvmcache-fix-memleaks-on-list-removal.patch
|
||||||
Patch22: 0022-dmstats-Fix-memory-leak-on-error-path.patch
|
Patch22: 0022-dmstats-Fix-memory-leak-on-error-path.patch
|
||||||
|
Patch23: 0023-fix-function-undeclared-in-libdm-common.c-and-dev-cache.c.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -497,6 +498,11 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 25 2024 yuanchao <1050706328@qq.com> - 8:2.03.21-13
|
||||||
|
- support clang build:
|
||||||
|
- fix function undeclared in libdm-common.c and dev-cache.c
|
||||||
|
- fix changelog to be in descending chronological order
|
||||||
|
|
||||||
* Wed Oct 23 2024 yanshuai <yanshuai@kylinos.cn> - 8:2.03.21-12
|
* Wed Oct 23 2024 yanshuai <yanshuai@kylinos.cn> - 8:2.03.21-12
|
||||||
- dmstats: Fix memory leak on error path
|
- dmstats: Fix memory leak on error path
|
||||||
|
|
||||||
@ -521,7 +527,7 @@ fi
|
|||||||
* Mon Jan 22 2024 peng.zou <peng.zou@shingroup.cn> - 8:2.03.22-4
|
* Mon Jan 22 2024 peng.zou <peng.zou@shingroup.cn> - 8:2.03.22-4
|
||||||
- lvm2-lockd: add suport for ppc64le
|
- lvm2-lockd: add suport for ppc64le
|
||||||
|
|
||||||
* Wed Nov 22 2023 wangxiaomeng <wangxiaomeng@kylinos.cn> - 8:2.03.22-3
|
* Tue Jan 9 2024 wangxiaomeng <wangxiaomeng@kylinos.cn> - 8:2.03.22-3
|
||||||
- lvmlockd: add suport for loongarch64
|
- lvmlockd: add suport for loongarch64
|
||||||
|
|
||||||
* Tue Dec 19 2023 wangzhiqiang <wangzhiqiang95@huawei.com> - 8:2.03.22-2
|
* Tue Dec 19 2023 wangzhiqiang <wangzhiqiang95@huawei.com> - 8:2.03.22-2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user