changeset 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 6bb874e9ee96
children 9492a4c33e92
files src/process.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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.  */