HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9d280ef
)
(Fopen_network_stream): Use HAVE_GAI_STRERROR.
author
Dave Love
<fx@gnu.org>
Mon, 2 Oct 2000 16:42:47 +0000
(16:42 +0000)
committer
Dave Love
<fx@gnu.org>
Mon, 2 Oct 2000 16:42:47 +0000
(16:42 +0000)
src/process.c
patch
|
blob
|
blame
|
history
diff --git
a/src/process.c
b/src/process.c
index
1fcbc23
..
a4845c9
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1822,7
+1822,12
@@
Fourth arg SERVICE is name of the service desired, or an integer\n\
hints.ai_protocol = 0;
ret = getaddrinfo (XSTRING (host)->data, portstring, &hints, &res);
if (ret)
+#ifdef HAVE_GAI_STRERROR
error ("%s/%s %s", XSTRING (host)->data, portstring, gai_strerror(ret));
+#else
+ error ("%s/%s getaddrinfo error %d", XSTRING (host)->data, portstring,
+ ret);
+#endif
immediate_quit = 0;
/* Do this in case we never enter the for-loop below. */