diff --git a/vlib/builtin/cfns.c.v b/vlib/builtin/cfns.c.v index c30a2945fc..3559c18ce1 100644 --- a/vlib/builtin/cfns.c.v +++ b/vlib/builtin/cfns.c.v @@ -54,7 +54,7 @@ fn C.isdigit(c int) bool fn C.popen(c &char, t &char) voidptr // -pub fn proc_pidpath(int, voidptr, int) int +pub fn C.proc_pidpath(int, voidptr, int) int fn C.realpath(const_path &char, resolved_path &char) &char diff --git a/vlib/os/os.c.v b/vlib/os/os.c.v index a2bef3f227..8c37461146 100644 --- a/vlib/os/os.c.v +++ b/vlib/os/os.c.v @@ -715,7 +715,7 @@ pub fn executable() string { } $if macos { pid := C.getpid() - ret := proc_pidpath(pid, &result[0], max_path_len) + ret := C.proc_pidpath(pid, &result[0], max_path_len) if ret <= 0 { eprintln('os.executable() failed at calling proc_pidpath with pid: ${pid} . proc_pidpath returned ${ret} ') return executable_fallback()