diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-20 14:58:37 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-20 14:58:37 +0900 |
commit | c422e00ebe2d308f08309aaff153d3d780322544 (patch) | |
tree | 149903ce6369703c0ec47db74214aa287b7a1e47 /src/cpu.c | |
parent | 23ec77e8574e39c13b44efd6f43e7804ce2aa9ed (diff) |
Illumos: コンパイルの問題の解決
Diffstat (limited to 'src/cpu.c')
-rw-r--r-- | src/cpu.c | 4 |
1 files changed, 4 insertions, 0 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 } |