diff options
Diffstat (limited to 'components/kernel_release.c')
-rw-r--r-- | components/kernel_release.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/kernel_release.c b/components/kernel_release.c index f539b6a..4e67a28 100644 --- a/components/kernel_release.c +++ b/components/kernel_release.c @@ -1,6 +1,8 @@ /* See LICENSE file for copyright and license details. */ +#include <errno.h> #include <sys/utsname.h> #include <stdio.h> +#include <string.h> #include "../util.h" @@ -10,6 +12,7 @@ kernel_release(void) struct utsname udata; if (uname(&udata) < 0) { + fprintf(stderr, "uname: %s\n", strerror(errno)); return NULL; } |