From babf60d57c79d0e85255dad6401b4962fa217cb9 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 20 Dec 2009 17:55:08 -0200 Subject: Apply patches from bug #10. Contributor unknown. --- hardinfo2/arch/linux/common/os.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux/common/os.h') diff --git a/hardinfo2/arch/linux/common/os.h b/hardinfo2/arch/linux/common/os.h index 5de27d82..23d4a7af 100644 --- a/hardinfo2/arch/linux/common/os.h +++ b/hardinfo2/arch/linux/common/os.h @@ -21,7 +21,13 @@ get_libc_version(void) { FILE *libc; gchar buf[256], *tmp, *p; - + + if (g_file_test("/lib/ld-uClibc.so.0", G_FILE_TEST_EXISTS)) { + return g_strdup("uClibc Library"); + } else if (!g_file_test("/lib/libc.so.6", G_FILE_TEST_EXISTS)) { + goto err; + } + libc = popen("/lib/libc.so.6", "r"); if (!libc) goto err; -- cgit v1.2.3