From 11c97887ef28e9b073d9abf1c2da70cd01491c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Tue, 18 Jun 2024 00:16:45 +0900 Subject: =?UTF-8?q?=E3=83=A1=E3=83=A2=E3=83=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/host.c') 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}'"); -- cgit v1.2.3