summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index b775fb9a7..b558ad78b 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -891,14 +891,12 @@ cygwin_getservbyport (int port, const char *proto)
extern "C" int
cygwin_gethostname (char *name, size_t len)
{
- int PASCAL win32_gethostname (char *, int);
-
sig_dispatch_pending (0);
sigframe thisframe (mainthread);
if (__check_null_invalid_struct_errno (name, len))
return -1;
- if (wsock32_handle == NULL || win32_gethostname (name, len) == SOCKET_ERROR)
+ if (gethostname (name, len) == SOCKET_ERROR)
{
DWORD local_len = len;