diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-03-30 17:24:31 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-03-30 17:24:31 -0500 |
commit | 327b7c16889c9d95ec076d695c970da11dc32a2b (patch) | |
tree | 91a9c864c60dfff69efe63d4cca7aab0b4754d6d /WWW/Library/Implementation/HTTCP.c | |
parent | 79de405977ac0d7820576b353dde07ce09cedba9 (diff) | |
download | lynx-snapshots-327b7c16889c9d95ec076d695c970da11dc32a2b.tar.gz |
snapshot of project "lynx", label v2-8-2dev_21
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 53cabd0e..99f0b8ff 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -571,6 +571,11 @@ PRIVATE size_t fill_rehostent ARGS3( #define REHOSTENT_SIZE 128 /* not bigger than pipe buffer! */ +#ifndef HAVE_H_ERRNO +#define h_errno my_errno +static int my_errno; +#endif + /* Resolve an internet hostname, like gethostbyname ** ------------------------------------------------ ** @@ -752,8 +757,8 @@ PUBLIC struct hostent * LYGetHostByName ARGS1( signal(SIGILL, SIG_DFL); /* - ** Child won't use read side. -BL - */ + ** Child won't use read side. -BL + */ close(pfd[0]); phost = gethostbyname(host); statuses.child_h_errno = h_errno; @@ -1223,6 +1228,7 @@ failed: } } +#ifdef LY_FIND_LEAKS /* Free our name for the host on which we are - FM ** ------------------------------------------- ** @@ -1231,6 +1237,7 @@ PRIVATE void free_HTTCP_hostname NOARGS { FREE(hostname); } +#endif /* LY_FIND_LEAKS */ /* Derive the name of the host on which we are ** ------------------------------------------- |