Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
39a21be6
Commit
39a21be6
authored
May 22, 1993
by
Jim Blandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* process.c (Fopen_network_stream): Deal with older systems, which
only have the h_addr field in their struct hostent.
parent
8243aa4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/process.c
src/process.c
+7
-2
No files found.
src/process.c
View file @
39a21be6
...
...
@@ -1448,8 +1448,13 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
host_info
.
h_name
=
0
;
host_info
.
h_aliases
=
0
;
host_info
.
h_addrtype
=
AF_INET
;
host_info
.
h_addr_list
=
&
(
addr_list
[
0
]);
addr_list
[
0
]
=
(
char
*
)(
&
numeric_addr
);
#ifdef h_addr
/* Older machines have only one address slot called h_addr.
Newer machines have h_addr_list, but #define h_addr to
be its first element. */
host_info
.
h_addr_list
=
&
(
addr_list
[
0
]);
#endif
host_info
.
h_addr
=
(
char
*
)(
&
numeric_addr
);
addr_list
[
1
]
=
0
;
host_info
.
h_length
=
strlen
(
addr_list
[
0
]);
}
...
...
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