(Fmake_network_process): Use AF_INET instead of
authorKim F. Storm <storm@cua.dk>
Thu, 5 Jan 2006 09:24:11 +0000 (09:24 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 5 Jan 2006 09:24:11 +0000 (09:24 +0000)
AF_UNSPEC when AF_INET6 is not defined.

src/process.c

index 3dfbf96..526e351 100644 (file)
@@ -2921,7 +2921,7 @@ usage: (make-network-process &rest ARGS)  */)
   tem = Fplist_get (contact, QCfamily);
   if (NILP (tem))
     {
-#ifdef HAVE_GETADDRINFO
+#if defined(HAVE_GETADDRINFO) && defined(AF_INET6)
       family = AF_UNSPEC;
 #else
       family = AF_INET;