Use /proc/self/exe on NetBSD
This commit is contained in:
parent
4b1e3f26a7
commit
e6dfadf55d
1 changed files with 1 additions and 1 deletions
|
|
@ -1374,7 +1374,7 @@ proc getAppFilename*(): string {.rtl, extern: "nos$1", tags: [ReadIOEffect].} =
|
|||
if result.len > 0:
|
||||
result = result.expandFilename
|
||||
else:
|
||||
when defined(linux) or defined(aix):
|
||||
when defined(linux) or defined(aix) or defined(netbsd):
|
||||
result = getApplAux("/proc/self/exe")
|
||||
elif defined(solaris):
|
||||
result = getApplAux("/proc/" & $getpid() & "/path/a.out")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue