mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
solaris: another fix
This commit is contained in:
@@ -542,6 +542,9 @@ pub fn user_os() string {
|
||||
$if android{
|
||||
return 'android'
|
||||
}
|
||||
$if solaris {
|
||||
return 'solaris'
|
||||
}
|
||||
return 'unknown'
|
||||
}
|
||||
|
||||
@@ -631,8 +634,8 @@ pub fn executable() string {
|
||||
// lol
|
||||
return os.args[0]
|
||||
}
|
||||
//$if solaris {
|
||||
//}
|
||||
$if solaris {
|
||||
}
|
||||
$if netbsd {
|
||||
mut result := malloc(MAX_PATH)
|
||||
count := int(C.readlink('/proc/curproc/exe', result, MAX_PATH ))
|
||||
|
Reference in New Issue
Block a user