diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 5 |
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. */ |