comparison 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
comparison
equal deleted inserted replaced
32073:6bb874e9ee96 32074:a889f9fc59a7
1820 hints.ai_family = AF_UNSPEC; 1820 hints.ai_family = AF_UNSPEC;
1821 hints.ai_socktype = SOCK_STREAM; 1821 hints.ai_socktype = SOCK_STREAM;
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. */
1829 count1 = specpdl_ptr - specpdl; 1834 count1 = specpdl_ptr - specpdl;
1830 s = -1; 1835 s = -1;