diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2017-03-01 08:44:24 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-01 09:44:24 +0100 |
commit | dd4d47c671827148bdaf478c7a37460931cd242c (patch) | |
tree | 7710df57106748763bda35268a6dd8ae05a71c98 /lib/windows | |
parent | 78de355ec60322ca33c26641d967bcf67571b5d9 (diff) | |
download | Nim-dd4d47c671827148bdaf478c7a37460931cd242c.tar.gz |
Add gethostname to nativesockets (#5443)
Diffstat (limited to 'lib/windows')
-rw-r--r-- | lib/windows/winlean.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/windows/winlean.nim b/lib/windows/winlean.nim index fa9ce9eed..1a251d0cc 100644 --- a/lib/windows/winlean.nim +++ b/lib/windows/winlean.nim @@ -542,6 +542,9 @@ proc gethostbyaddr*(ip: ptr InAddr, len: cuint, theType: cint): ptr Hostent {. proc gethostbyname*(name: cstring): ptr Hostent {. stdcall, importc: "gethostbyname", dynlib: ws2dll.} +proc gethostname*(hostname: cstring, len: cint): cint {. + stdcall, importc: "gethostname", dynlib: ws2dll.} + proc socket*(af, typ, protocol: cint): SocketHandle {. stdcall, importc: "socket", dynlib: ws2dll.} |