summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-09-28 02:06:23 +0800
committerGitHub <noreply@github.com>2022-09-27 20:06:23 +0200
commit3d2f0e2c7ce73299e57f2ebd5ee52822c3543554 (patch)
treed4f959d7d3bf15e959fe37af8826f866cf23f75e /lib/pure/nativesockets.nim
parent98a717dda92ff45dc14818815ddc53764339066b (diff)
downloadNim-3d2f0e2c7ce73299e57f2ebd5ee52822c3543554.tar.gz
make more standard libraries work with `nimPreviewSlimSystem` (#20343)
* make more standard libraries work with `nimPreviewSlimSystem`

* typo

* part two

* Delete specutils.nim

* fixes more tests

* more fixes

* fixes tests

* fixes three more tests

* add formatfloat import

* fix

* last
Diffstat (limited to 'lib/pure/nativesockets.nim')
-rw-r--r--lib/pure/nativesockets.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/nativesockets.nim b/lib/pure/nativesockets.nim
index ca4e61621..dcba996a4 100644
--- a/lib/pure/nativesockets.nim
+++ b/lib/pure/nativesockets.nim
@@ -16,6 +16,8 @@ import os, options
 import std/private/since
 import std/strbasics
 
+when defined(nimPreviewSlimSystem):
+  import std/[assertions, syncio]
 
 when hostOS == "solaris":
   {.passl: "-lsocket -lnsl".}