diff options
author | Araq <rumpf_a@web.de> | 2012-07-28 19:57:43 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-28 19:57:43 +0200 |
commit | d962b75c183ed04612dc20919d94925f3eaa161b (patch) | |
tree | 72c46d62596a59525824d21e27e9ff5a5c5898f9 /lib | |
parent | 58a66a0d705e824b69ee7b355dbc8c304493afdd (diff) | |
download | Nim-d962b75c183ed04612dc20919d94925f3eaa161b.tar.gz |
attempt to getAppFilename to work on NetBSD
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 19a2fc711..5ec46d6b7 100755 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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 |