Mercurial > emacs
diff src/process.c @ 32074:a889f9fc59a7
(Fopen_network_stream): Use HAVE_GAI_STRERROR.
| author | Dave Love <fx@gnu.org> |
|---|---|
| date | Mon, 02 Oct 2000 16:42:47 +0000 |
| parents | 633b826a56f3 |
| children | 924ecf698ac3 |
line wrap: on
line diff
--- a/src/process.c Mon Oct 02 16:37:49 2000 +0000 +++ b/src/process.c Mon Oct 02 16:42:47 2000 +0000 @@ -1822,7 +1822,12 @@ 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. */
