diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-01-10 12:55:47 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-01-10 12:55:47 +0000 |
commit | dc8d11f52e5eda900c9b7dc06aab19567b1c9a50 (patch) | |
tree | 4408211913e6e708555e2ec2c9610ee893609ce7 /winsup/cygwin/autoload.cc | |
parent | e136dbc2975f6821be7eeba06bf9ae6fdb9f5c4e (diff) | |
download | newlib-dc8d11f52e5eda900c9b7dc06aab19567b1c9a50.zip newlib-dc8d11f52e5eda900c9b7dc06aab19567b1c9a50.tar.gz newlib-dc8d11f52e5eda900c9b7dc06aab19567b1c9a50.tar.bz2 |
* autoload.cc (gethostname): Make call optional, return 1 if function
can't get loaded.
* net.cc (cygwin_gethostname): Call GetComputerName if return value
of gethostname is non-zero.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 5210623..2d75604 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -445,7 +445,7 @@ LoadDLLfunc (closesocket, 4, wsock32) LoadDLLfunc (connect, 12, wsock32) LoadDLLfunc (gethostbyaddr, 12, wsock32) LoadDLLfunc (gethostbyname, 4, wsock32) -LoadDLLfunc (gethostname, 8, wsock32) +LoadDLLfuncEx2 (gethostname, 8, wsock32, 1, 1) LoadDLLfunc (getpeername, 12, wsock32) LoadDLLfunc (getprotobyname, 4, wsock32) LoadDLLfunc (getprotobynumber, 4, wsock32) |