diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/pure/sockets.nim | 6 | ||||
-rwxr-xr-x | lib/system.nim | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index f0d4cb6b8..10af213f4 100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -14,6 +14,9 @@ ## For OpenSSL support compile with ``-d:ssl``. When using SSL be aware that ## most functions will then raise ``ESSL`` on SSL errors. +when hostos == "solaris": + {.passl: "-lsocket -lnsl".} + import os, parseutils from times import epochTime @@ -24,9 +27,6 @@ when defined(Windows): import winlean else: import posix - - when defined(solaris): - {.passl: "-lsocket -lnsl".} # Note: The enumerations are mapped to Window's constants. diff --git a/lib/system.nim b/lib/system.nim index 4a1bde56a..9caf38614 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -1671,7 +1671,6 @@ proc debugEcho*[T](x: varargs[T, `$`]) {.magic: "Echo", noSideEffect.} template newException*(exceptn: typeDesc, message: string): expr = ## creates an exception object of type ``exceptn`` and sets its ``msg`` field ## to `message`. Returns the new exception object. - # block: # open a new scope var e: ref exceptn new(e) |