# HG changeset patch # User Richard M. Stallman # Date 775169240 0 # Node ID 60adc323cfe737daa8058308b40cc6ddc4890edd # Parent 49a8b5185da4fb4db17ce6c94a52455d3b499320 [!HAVE_H_ERRNO]: Declare h_errno. (init_system_name): Set h_errno to 0 initially. diff -r 49a8b5185da4 -r 60adc323cfe7 src/sysdep.c --- a/src/sysdep.c Mon Jul 25 20:46:46 1994 +0000 +++ b/src/sysdep.c Mon Jul 25 20:47:20 1994 +0000 @@ -59,6 +59,10 @@ #undef fwrite #endif +#ifndef HAVE_H_ERRNO +extern int h_errno; +#endif + #include #include #include @@ -2040,6 +2044,9 @@ 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))