diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 013a3128979..43d569b201b 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -135,6 +135,10 @@ extern char *strerror (); | |||
| 135 | extern char *sys_errlist[]; | 135 | extern char *sys_errlist[]; |
| 136 | #endif | 136 | #endif |
| 137 | 137 | ||
| 138 | #ifndef HAVE_H_ERRNO | ||
| 139 | extern int h_errno; | ||
| 140 | #endif | ||
| 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 |
| @@ -1516,6 +1520,9 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ | |||
| 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)) |