From 5aa8278f6c4a3c211dd2e76c3c828a68c55ee28d Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 23 Apr 2014 00:06:56 +0200 Subject: [PATCH] Haiku build works again --- koch.nim | 2 +- lib/pure/os.nim | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koch.nim b/koch.nim index 9d59344f2b..79acc77915 100644 --- a/koch.nim +++ b/koch.nim @@ -299,7 +299,7 @@ of cmdArgument: of "boot": boot(op.cmdLineRest) of "clean": clean(op.cmdLineRest) of "web": web(op.cmdLineRest) - of "csource": csource(op.cmdLineRest) + of "csource", "csources": csource(op.cmdLineRest) of "zip": zip(op.cmdLineRest) of "inno": inno(op.cmdLineRest) of "install": install(op.cmdLineRest) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 3cb1482b72..649dcd2d40 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1612,6 +1612,7 @@ when defined(linux) or defined(solaris) or defined(bsd) or defined(aix): len = readlink(procPath, result, len) setLen(result, len) +when not (defined(windows) or defined(macosx)): proc getApplHeuristic(): string = result = string(paramStr(0)) # POSIX guaranties that this contains the executable