aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorDave Love2000-10-02 16:42:47 +0000
committerDave Love2000-10-02 16:42:47 +0000
commitf6270f62c2edd9f1c4cc047adae1b63ec913110b (patch)
tree5996e0fc3aa5fb5d9882ed20cb5142986503d673 /src/process.c
parent9d280ef70502a196f94b8cf5fe3a5ae64dc5992b (diff)
downloademacs-f6270f62c2edd9f1c4cc047adae1b63ec913110b.tar.gz
emacs-f6270f62c2edd9f1c4cc047adae1b63ec913110b.zip
(Fopen_network_stream): Use HAVE_GAI_STRERROR.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 1fcbc2311a3..a4845c99d58 100644
--- 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\
1822 hints.ai_protocol = 0; 1822 hints.ai_protocol = 0;
1823 ret = getaddrinfo (XSTRING (host)->data, portstring, &hints, &res); 1823 ret = getaddrinfo (XSTRING (host)->data, portstring, &hints, &res);
1824 if (ret) 1824 if (ret)
1825#ifdef HAVE_GAI_STRERROR
1825 error ("%s/%s %s", XSTRING (host)->data, portstring, gai_strerror(ret)); 1826 error ("%s/%s %s", XSTRING (host)->data, portstring, gai_strerror(ret));
1827#else
1828 error ("%s/%s getaddrinfo error %d", XSTRING (host)->data, portstring,
1829 ret);
1830#endif
1826 immediate_quit = 0; 1831 immediate_quit = 0;
1827 1832
1828 /* Do this in case we never enter the for-loop below. */ 1833 /* Do this in case we never enter the for-loop below. */