Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
8330:60adc323cfe7 | 8331:14ddb4c66461 |
---|---|
131 | 131 |
132 extern int errno; | 132 extern int errno; |
133 extern char *strerror (); | 133 extern char *strerror (); |
134 #ifdef VMS | 134 #ifdef VMS |
135 extern char *sys_errlist[]; | 135 extern char *sys_errlist[]; |
136 #endif | |
137 | |
138 #ifndef HAVE_H_ERRNO | |
139 extern int h_errno; | |
136 #endif | 140 #endif |
137 | 141 |
138 #ifndef SYS_SIGLIST_DECLARED | 142 #ifndef SYS_SIGLIST_DECLARED |
139 #ifndef VMS | 143 #ifndef VMS |
140 #ifndef BSD4_1 | 144 #ifndef BSD4_1 |
1514 } | 1518 } |
1515 | 1519 |
1516 #ifndef TERM | 1520 #ifndef TERM |
1517 while (1) | 1521 while (1) |
1518 { | 1522 { |
1523 #ifdef TRY_AGAIN | |
1524 h_errno = 0; | |
1525 #endif | |
1519 host_info_ptr = gethostbyname (XSTRING (host)->data); | 1526 host_info_ptr = gethostbyname (XSTRING (host)->data); |
1520 #ifdef TRY_AGAIN | 1527 #ifdef TRY_AGAIN |
1521 if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN)) | 1528 if (! (host_info_ptr == 0 && h_errno == TRY_AGAIN)) |
1522 #endif | 1529 #endif |
1523 break; | 1530 break; |