diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu.c | 4 | ||||
-rw-r--r-- | src/host.c | 2 | ||||
-rw-r--r-- | src/packages.c | 4 |
3 files changed, 9 insertions, 1 deletions
@@ -4,6 +4,8 @@ #if defined(__linux__) #include <stdio.h> #include <stdlib.h> +#elif defined(__sun) +#include <stdio.h> #endif const char *display_cpu() { @@ -48,5 +50,7 @@ const char *display_cpu() { fclose(fp); return run_command_s("echo \"GHz (\" && nproc && echo \" core)\""); +#elif defined(__sun) + return NULL; #endif } @@ -98,7 +98,7 @@ void display_host_model() { "awk -F':' '/banner-name/ {printf $2}'"); if (!cmd) return; printf("%s", cmd); - free((void *)cm(void *)cmd); + free((void *)cmd); #elif defined(__linux__) const char *cmd1 = NULL; const char *cmd2 = NULL; diff --git a/src/packages.c b/src/packages.c index 73c0400..e2bbfb6 100644 --- a/src/packages.c +++ b/src/packages.c @@ -5,6 +5,8 @@ #include <unistd.h> #include "distro.h" +#elif defined(__sun) +#include <stdio.h> #endif const char *display_packages() { @@ -24,5 +26,7 @@ const char *display_packages() { } return NULL; +#elif defined(__sun) + return NULL; #endif } |