# HG changeset patch # User Dave Love # Date 970504967 0 # Node ID a889f9fc59a7c603c41a7dc38a7879af8556b4a7 # Parent 6bb874e9ee9629bd949df93ea7b7c983fedac068 (Fopen_network_stream): Use HAVE_GAI_STRERROR. diff -r 6bb874e9ee96 -r a889f9fc59a7 src/process.c --- 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. */