From 327b7c16889c9d95ec076d695c970da11dc32a2b Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Tue, 30 Mar 1999 17:24:31 -0500 Subject: snapshot of project "lynx", label v2-8-2dev_21 --- WWW/Library/Implementation/HTTCP.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation/HTTCP.c') 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 ** ------------------------------------------- -- cgit 1.4.1-2-gfad0