diff options
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index b558ad78b..b55e439b4 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -896,7 +896,7 @@ cygwin_gethostname (char *name, size_t len) if (__check_null_invalid_struct_errno (name, len)) return -1; - if (gethostname (name, len) == SOCKET_ERROR) + if (gethostname (name, len)) { DWORD local_len = len; |