summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index f10cc52..ebafe13 100644
--- a/src/host.c
+++ b/src/host.c
@@ -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}'");