mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
solaris support
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user