diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2017-04-13 05:10:54 +0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-12 23:10:54 +0200 |
commit | ce86b4ad78aae11f62c50e4f46e8ab2a124356b4 (patch) | |
tree | 2b3dfa6ef21907689d60dbf6f74041e1ce389546 /lib/deprecated/pure | |
parent | e512358bc96b7be58bf4f2d5a2c5de75f119138a (diff) | |
download | Nim-ce86b4ad78aae11f62c50e4f46e8ab2a124356b4.tar.gz |
Posix from detect (#5697)
* refactor posix.nim * types move to separate files for platform-specifc and generic ("other') * consts move to separate files that get autogenerated by detect.nim * proc's stay where they are for now, though in a second stage might move as well * fix missing when
Diffstat (limited to 'lib/deprecated/pure')
-rw-r--r-- | lib/deprecated/pure/sockets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/deprecated/pure/sockets.nim b/lib/deprecated/pure/sockets.nim index 34c2e7a7d..415078126 100644 --- a/lib/deprecated/pure/sockets.nim +++ b/lib/deprecated/pure/sockets.nim @@ -219,7 +219,7 @@ template htons(x: uint16): expr = sockets.ntohs(x) when defined(Posix): - proc toInt(domain: Domain): cint = + proc toInt(domain: Domain): TSa_Family = case domain of AF_UNIX: result = posix.AF_UNIX of AF_INET: result = posix.AF_INET |