diff options
| author | Richard M. Stallman | 1994-07-25 20:47:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-07-25 20:47:57 +0000 |
| commit | 5f0929a7f9380db5d2416035fd02083ed1185779 (patch) | |
| tree | 81e7836642b820285bb3bb9408dcb3821487621f /src/process.c | |
| parent | e24f1d5575f04ba4c285b587817efecbb6b6ed10 (diff) | |
| download | emacs-5f0929a7f9380db5d2416035fd02083ed1185779.tar.gz emacs-5f0929a7f9380db5d2416035fd02083ed1185779.zip | |
[!HAVE_H_ERRNO]: Declare h_errno.
(Fopen_network_stream): Set h_errno to 0 initially.
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)) |