Mercurial > emacs
changeset 8331:14ddb4c66461
[!HAVE_H_ERRNO]: Declare h_errno.
(Fopen_network_stream): Set h_errno to 0 initially.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 25 Jul 1994 20:47:57 +0000 |
parents | 60adc323cfe7 |
children | 1b4a8157f36c |
files | src/process.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Mon Jul 25 20:47:20 1994 +0000 +++ b/src/process.c Mon Jul 25 20:47:57 1994 +0000 @@ -135,6 +135,10 @@ extern char *sys_errlist[]; #endif +#ifndef HAVE_H_ERRNO +extern int h_errno; +#endif + #ifndef SYS_SIGLIST_DECLARED #ifndef VMS #ifndef BSD4_1 @@ -1516,6 +1520,9 @@ #ifndef TERM while (1) { +#ifdef TRY_AGAIN + h_errno = 0; +#endif host_info_ptr = gethostbyname (XSTRING (host)->data); #ifdef TRY_AGAIN if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN))