attempt to getAppFilename to work on NetBSD

This commit is contained in:
Araq
2012-07-28 19:57:43 +02:00
parent 58a66a0d70
commit d962b75c18

View File

@@ -1380,7 +1380,7 @@ proc getAppFilename*(): string {.rtl, extern: "nos$1".} =
result = getApplAux("/proc/self/exe")
elif defined(solaris):
result = getApplAux("/proc/" & $getpid() & "/path/a.out")
elif defined(bsd):
elif defined(freebsd):
result = getApplAux("/proc/" & $getpid() & "/file")
elif defined(macosx):
var size: cuint32