From dd4d47c671827148bdaf478c7a37460931cd242c Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Wed, 1 Mar 2017 08:44:24 +0000 Subject: Add gethostname to nativesockets (#5443) --- lib/windows/winlean.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/windows') 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.} -- cgit 1.4.1-2-gfad0