diff --git a/chronos/handles.nim b/chronos/handles.nim index 19716f2..a05c4e3 100644 --- a/chronos/handles.nim +++ b/chronos/handles.nim @@ -7,10 +7,10 @@ # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import net, nativesockets, os, asyncloop +import net, nativesockets, asyncloop when defined(windows): - import winlean + import os, winlean const asyncInvalidSocket* = AsyncFD(-1) TCP_NODELAY* = 1 diff --git a/tests/testaddress.nim b/tests/testaddress.nim index 56c9f82..a2a2e36 100644 --- a/tests/testaddress.nim +++ b/tests/testaddress.nim @@ -5,7 +5,7 @@ # Licensed under either of # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import strutils, unittest +import unittest import ../chronos when defined(nimHasUsed): {.used.} diff --git a/tests/testasyncstream.nim b/tests/testasyncstream.nim index a5c7a04..54869d1 100644 --- a/tests/testasyncstream.nim +++ b/tests/testasyncstream.nim @@ -5,7 +5,7 @@ # Licensed under either of # Apache License, version 2.0, (LICENSE-APACHEv2) # MIT license (LICENSE-MIT) -import strutils, unittest, os +import strutils, unittest import ../chronos, ../chronos/streams/tlsstream when defined(nimHasUsed): {.used.}