From a7711767209fb26472381c4a03695d6fa8f051d1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 10 Jan 2003 11:58:52 +0000 Subject: * net.cc (cygwin_gethostname): Fix call to wsock function gethostname. --- winsup/cygwin/net.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'winsup/cygwin/net.cc') 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; -- cgit v1.2.3