diff src/process.c @ 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 97c2535b7f37
children df850e171c61
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))