From 6ad1c1c257c74c82179a0eb62277ceef1cc4e9e0 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Tue, 31 Jan 2006 23:35:06 +0000 Subject: Sync with internal subversion --- hardinfo2/arch/common/zlib.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hardinfo2/arch/common/zlib.h') diff --git a/hardinfo2/arch/common/zlib.h b/hardinfo2/arch/common/zlib.h index 74145cae..f68d60f4 100644 --- a/hardinfo2/arch/common/zlib.h +++ b/hardinfo2/arch/common/zlib.h @@ -27,8 +27,12 @@ benchmark_zlib(void) if (!(compress && compressBound)) { libz = g_module_open("libz", G_MODULE_BIND_LAZY); if (!libz) { - return g_strdup("[Error]\n" - "ZLib not found="); + libz = g_module_open("/lib/libz.so", G_MODULE_BIND_LAZY); + if (!libz) { + g_print("%s\n", g_module_error()); + return g_strdup("[Error]\n" + "ZLib not found="); + } } if (!g_module_symbol(libz, "compress", (gpointer) & compress) -- cgit v1.2.3