Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5f0929a7
Commit
5f0929a7
authored
Jul 25, 1994
by
Richard M. Stallman
Browse files
[!HAVE_H_ERRNO]: Declare h_errno.
(Fopen_network_stream): Set h_errno to 0 initially.
parent
e24f1d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/process.c
src/process.c
+7
-0
No files found.
src/process.c
View file @
5f0929a7
...
...
@@ -135,6 +135,10 @@ extern char *strerror ();
extern
char
*
sys_errlist
[];
#endif
#ifndef HAVE_H_ERRNO
extern
int
h_errno
;
#endif
#ifndef SYS_SIGLIST_DECLARED
#ifndef VMS
#ifndef BSD4_1
...
...
@@ -1516,6 +1520,9 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
#ifndef TERM
while
(
1
)
{
#ifdef TRY_AGAIN
h_errno
=
0
;
#endif
host_info_ptr
=
gethostbyname
(
XSTRING
(
host
)
->
data
);
#ifdef TRY_AGAIN
if
(
!
(
host_info_ptr
==
0
&&
h_errno
==
TRY_AGAIN
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment