5 Star 0 Fork 17

src-openEuler/sbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-test-load-libaio.so-instead-of-libaio.so.1.patch 984 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 367f461470a14a5441bbc016a72eede23b4ed151 Mon Sep 17 00:00:00 2001
From: Klaus Wenninger <[email protected]>
Date: Wed, 20 Mar 2024 08:47:37 +0100
Subject: [PATCH] test: load libaio.so instead of libaio.so.1
as that is rather what sbd would link against without preloading
on distros linking different library versions under these 2 names
---
tests/sbd-testbed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/sbd-testbed.c b/tests/sbd-testbed.c
index 91920f2..02844a7 100644
--- a/tests/sbd-testbed.c
+++ b/tests/sbd-testbed.c
@@ -154,7 +154,7 @@ init (void)
orig_fopen = (orig_fopen_f_type)dlsym_fatal(RTLD_NEXT,"fopen");
orig_fclose = (orig_fclose_f_type)dlsym_fatal(RTLD_NEXT,"fclose");
- handle = dlopen("libaio.so.1", RTLD_NOW);
+ handle = dlopen("libaio.so", RTLD_NOW);
if (!handle) {
fprintf(stderr, "Failed opening libaio.so.1\n");
exit(1);
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/sbd.git
[email protected]:src-openeuler/sbd.git
src-openeuler
sbd
sbd
master

搜索帮助