HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f0ed96
)
[!HAVE_H_ERRNO]: Declare h_errno.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 25 Jul 1994 20:47:20 +0000
(20:47 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 25 Jul 1994 20:47:20 +0000
(20:47 +0000)
(init_system_name): Set h_errno to 0 initially.
src/sysdep.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index
0bb7b14
..
828ec00
100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-59,6
+59,10
@@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef fwrite
#endif
+#ifndef HAVE_H_ERRNO
+extern int h_errno;
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-2040,6
+2044,9
@@
init_system_name ()
int count;
for (count = 0; count < 10; count++)
{
+#ifdef TRY_AGAIN
+ h_errno = 0;
+#endif
hp = gethostbyname (hostname);
#ifdef TRY_AGAIN
if (! (hp == 0 && h_errno == TRY_AGAIN))