diff --git a/vlib/os/os.v b/vlib/os/os.v index f43a1ac8e0..2df87dc321 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -310,6 +310,12 @@ pub fn user_os() string { $if haiku { return 'haiku' } + $if serenity { + return 'serenity' + } + $if vinix { + return 'vinix' + } return 'unknown' } diff --git a/vlib/v/pref/os.v b/vlib/v/pref/os.v index 929db54e5a..bc1e560a60 100644 --- a/vlib/v/pref/os.v +++ b/vlib/v/pref/os.v @@ -97,10 +97,9 @@ pub fn get_host_os() OS { $if serenity { return .serenity } - // TODO: uncomment the vinix block after v.c is regenerated - // $if vinix { - // return .vinix - // } + $if vinix { + return .vinix + } $if solaris { return .solaris }