+2003-01-10 Corinna Vinschen <corinna@vinschen.de>
+
+ * net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
+
2003-01-09 Christopher Faylor <cgf@redhat.com>
* cygthread.cc (cygthread::cygthread): Be more noisy about odd
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;