1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

solaris support

This commit is contained in:
Alexander Medvednikov
2019-09-27 00:23:27 +03:00
parent fb4f14ba76
commit 107e9107c8
3 changed files with 6 additions and 2 deletions

View File

@@ -631,6 +631,8 @@ pub fn executable() string {
// lol
return os.args[0]
}
$if solaris {
}
$if netbsd {
mut result := malloc(MAX_PATH)
count := int(C.readlink('/proc/curproc/exe', result, MAX_PATH ))
@@ -647,7 +649,7 @@ pub fn executable() string {
}
return string(result, count)
}
return '.'
return os.args[0]
}
pub fn is_dir(path string) bool {