Resolve bugs

This commit is contained in:
cheatfate 2016-05-24 01:37:31 +03:00
commit d4f3db3bd0

View file

@ -970,7 +970,7 @@ elif not defined(useNimRtl):
when defined(macosx) or defined(freebsd) or defined(netbsd) or when defined(macosx) or defined(freebsd) or defined(netbsd) or
defined(openbsd): defined(openbsd):
import kqueue import kqueue, times
proc waitForExit(p: Process, timeout: int = -1): int = proc waitForExit(p: Process, timeout: int = -1): int =
if p.exitCode != -3: return p.exitCode if p.exitCode != -3: return p.exitCode
@ -1025,7 +1025,7 @@ elif not defined(useNimRtl):
result = int(p.exitCode) shr 8 result = int(p.exitCode) shr 8
else: else:
import times import times
const const
hasThreadSupport = compileOption("threads") and not defined(nimscript) hasThreadSupport = compileOption("threads") and not defined(nimscript)