summaryrefslogtreecommitdiff
path: root/src/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu.c')
-rw-r--r--src/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu.c b/src/cpu.c
index ee0448c..03b004c 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -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
}