From f0274e6ba6f43d4909f3b0240ba0fad50418debe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Sat, 22 Jun 2024 03:13:21 +0900 Subject: =?UTF-8?q?SunOS:=20=E3=83=AD=E3=82=B4=E3=81=A8=E3=83=87=E3=82=A3?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=83=AD=E6=83=85=E5=A0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/distro.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/distro.c') diff --git a/src/distro.c b/src/distro.c index 784b76e..fdd8718 100644 --- a/src/distro.c +++ b/src/distro.c @@ -1,4 +1,4 @@ -#if defined(__linux__) +#if defined(__linux__) || defined(__sun) #include "distro.h" #include @@ -85,6 +85,7 @@ void get_distro() { else if (strstr(buf, "Arch Linux") != NULL) distroname = "arch"; else if (strstr(buf, "Artix Linux") != NULL) distroname = "artix"; else if (strstr(buf, "CRUX") != NULL) distroname = "crux"; + else if (strstr(buf, "OmniOS") != NULL) distroname = "omnios"; else distroname = "linux"; } #endif -- cgit v1.2.3