# include <sys/utsname.h>
#endif
-#if defined(__GNU_LIBRARY__)
+#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
# include <gnu/libc-version.h>
#endif
int choutput[2];
pid_t pid;
- pipe(choutput);
+ if (pipe(choutput) == -1) {
+ g_print("can't pipe - error %s", errno);
+ return;
+ }
if (0 == (pid = fork())) {
char *argp[10];
*/
static const gchar *get_lib_version(void)
{
-#if defined(__GNU_LIBRARY__)
+#if defined(__UCLIBC__)
+ return g_strdup_printf("uClibc %i.%i.%i", __UCLIBC_MAJOR__, __UCLIBC_MINOR__, __UCLIBC_SUBLEVEL__);
+#elif defined(__GNU_LIBRARY__)
return g_strdup_printf("GNU libc %s", gnu_get_libc_version());
#else
return g_strdup(_("Unknown"));