mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
haiku support (part 2)
This commit is contained in:
committed by
Alexander Medvednikov
parent
f806e0f9e5
commit
6d28a80bf8
@@ -697,6 +697,9 @@ pub fn user_os() string {
|
||||
$if solaris {
|
||||
return 'solaris'
|
||||
}
|
||||
$if haiku {
|
||||
return 'haiku'
|
||||
}
|
||||
return 'unknown'
|
||||
}
|
||||
|
||||
@@ -796,6 +799,8 @@ pub fn executable() string {
|
||||
}
|
||||
$if solaris {
|
||||
}
|
||||
$if haiku {
|
||||
}
|
||||
$if netbsd {
|
||||
mut result := calloc(MAX_PATH)
|
||||
count := int(C.readlink('/proc/curproc/exe', result, MAX_PATH ))
|
||||
|
||||
Reference in New Issue
Block a user