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

macos libproc fix 2

This commit is contained in:
Alexander Medvednikov
2019-10-26 02:19:14 +03:00
parent 203f967677
commit cba12d0106
2 changed files with 1 additions and 4 deletions

View File

@@ -698,8 +698,6 @@ pub fn executable() string {
return string_from_wide2(result, len)
}
$if mac {
return os.args[0]
/*
mut result := malloc(MAX_PATH)
pid := C.getpid()
ret := proc_pidpath (pid, result, MAX_PATH)
@@ -708,7 +706,6 @@ pub fn executable() string {
return '.'
}
return string(result)
*/
}
$if freebsd {
mut result := malloc(MAX_PATH)