!206 fix 2 undeclared functions,support clang build
From: @fandeyuan Reviewed-by: @kouwq Signed-off-by: @kouwq
This commit is contained in:
commit
26a7a281c7
@ -0,0 +1,38 @@
|
||||
From cfc1fd1186867683a265836e223f58bacd88065d 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,support clang
|
||||
|
||||
---
|
||||
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 93c91a7..82deb34 100644
|
||||
--- a/lib/device/dev-cache.c
|
||||
+++ b/lib/device/dev-cache.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <dirent.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 bbc6a17..adb72f0 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
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
|
||||
Name: lvm2
|
||||
Version: 2.03.09
|
||||
Release: 21
|
||||
Release: 22
|
||||
Epoch: 8
|
||||
Summary: Tools for logical volume management
|
||||
License: GPLv2+ and LGPLv2.1 and BSD
|
||||
@ -80,6 +80,7 @@ Patch28: 0028-vgchange-acquire-an-exclusive-VG-lock-for-refresh.patch
|
||||
Patch29: 0029-use-4k-sector-size-when-any-dev-is-4k.patch
|
||||
Patch30: 0030-dmstats-Fix-memory-leak-on-error-path.patch
|
||||
Patch31: 0031-fix-syslog-setting.patch
|
||||
Patch32: 0032-fix-function-undeclared-in-libdm-common.c-and-dev-cache.c.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
@ -505,6 +506,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 7 2024 Deyuan Fan <fandeyuan@kylinos.cn> - 8:2.03.09-22
|
||||
- support clang build:
|
||||
- fix function undeclared in libdm-common.c and dev-cache.c
|
||||
|
||||
* Wed Oct 30 2024 yanshuai <yanshuai@kylinos.cn> - 8:2.03.09-21
|
||||
- fix syslog setting
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user