Merge pull request #1225 from Varriount/fix-issue/1134

Fix issue #1134
This commit is contained in:
Varriount 2014-05-24 09:12:46 -04:00
commit b3a39524ee

View file

@ -11,9 +11,12 @@
import tables, os, unsigned, hashes import tables, os, unsigned, hashes
when defined(linux): import posix, epoll when defined(linux) or defined(macosx):
elif defined(windows): import winlean import posix, epoll
else: import posix elif defined(windows):
import winlean
else:
import posix
proc hash*(x: TSocketHandle): THash {.borrow.} proc hash*(x: TSocketHandle): THash {.borrow.}
proc `$`*(x: TSocketHandle): string {.borrow.} proc `$`*(x: TSocketHandle): string {.borrow.}