代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。