aboutsummaryrefslogtreecommitdiff
path: root/modules/computer
diff options
context:
space:
mode:
Diffstat (limited to 'modules/computer')
-rw-r--r--modules/computer/os.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/computer/os.c b/modules/computer/os.c
index 50fa2bb4..f15be866 100644
--- a/modules/computer/os.c
+++ b/modules/computer/os.c
@@ -34,6 +34,7 @@ get_libc_version(void)
} libs[] = {
{ .test_cmd = "ldconfig -V", .match_str = "GLIBC", .lib_name = "GNU C Library" },
{ .test_cmd = "ldconfig -v", .match_str = "uClibc", .lib_name = "uClibc or uClibc-ng" },
+ { .test_cmd = "diet", .match_str = "diet version", .lib_name = "diet libc" },
{ NULL, NULL, NULL },
};
int i = 0;
@@ -58,6 +59,7 @@ get_libc_version(void)
switch (i) {
case 0: /* GLIBC */
+ case 3: /* diet libc */
if (ver_str)
ret = g_strdup_printf("%s / %s", libs[i].lib_name, ver_str );
else