diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-18 00:16:45 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-18 00:16:45 +0900 |
commit | 11c97887ef28e9b073d9abf1c2da70cd01491c9e (patch) | |
tree | 41c7b4d79d99733b879f6c63c8c731484022fc7e /src/host.c | |
parent | 3d418e666955695052d25e32c6b2f296b7af6859 (diff) |
メモリ
Diffstat (limited to 'src/host.c')
-rw-r--r-- | src/host.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,7 +27,8 @@ void run_command(const char *command) { } void display_host_model() { -#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__minix) +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ + defined(__DragonFly__) || defined(__minix) run_command("sysctl -n hw.vendor hw.product"); #elif defined(__sun) run_command("prtconf -b | awk -F':' '/banner-name/ {printf $2}'"); |