This commit is contained in:
Araq 2014-02-14 22:19:40 +01:00
commit f95a8df243
2 changed files with 7 additions and 4 deletions

View file

@ -791,7 +791,10 @@ elif not defined(useNimRtl):
proc csystem(cmd: cstring): cint {.nodecl, importc: "system".}
proc execCmd(command: string): int =
result = csystem(command) shr 8
when defined(linux)
result = csystem(command) shr 8
else:
result = csystem(command)
proc createFdSet(fd: var TFdSet, s: seq[PProcess], m: var int) =
FD_ZERO(fd)