summaryrefslogtreecommitdiff
path: root/src/distro.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/distro.c')
-rw-r--r--src/distro.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
@@ -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