diff options
Diffstat (limited to 'lib/system/io.nim')
-rw-r--r-- | lib/system/io.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/io.nim b/lib/system/io.nim index a8f690054..41716f9af 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -615,7 +615,7 @@ when declared(stdout): android_log_print(ANDROID_LOG_VERBOSE, "nim", s) else: # flockfile deadlocks some versions of Android 5.x.x - when not defined(windows) and not defined(android) and not defined(nintendoswitch): + when not defined(windows) and not defined(android) and not defined(nintendoswitch) and hostOS != "any": proc flockfile(f: File) {.importc, nodecl.} proc funlockfile(f: File) {.importc, nodecl.} flockfile(stdout) @@ -629,7 +629,7 @@ when declared(stdout): const linefeed = "\n" discard c_fwrite(linefeed.cstring, linefeed.len, 1, stdout) discard c_fflush(stdout) - when not defined(windows) and not defined(android) and not defined(nintendoswitch): + when not defined(windows) and not defined(android) and not defined(nintendoswitch) and hostOS != "any": funlockfile(stdout) when defined(windows) and compileOption("threads"): releaseSys echoLock |