mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
This commit is contained in:
parent
e410614acf
commit
a771176720
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user