10 Star 3 Fork 39

src-openEuler/lvm2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0023-fix-function-undeclared-in-libdm-common.c-and-dev-cache.c.patch 969 Bytes
一键复制 编辑 原始数据 按行查看 历史
From e5ce6e143393fe50da73eabdf32ce3dafb7b9dd7 Mon Sep 17 00:00:00 2001
From: yuncang123 <[email protected]>
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lvm2.git
[email protected]:src-openeuler/lvm2.git
src-openeuler
lvm2
lvm2
master

搜索帮助