]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 3dfbf969c30bd9ae30d2eac1f31524506095455a..526e35183904d274d24c1b8972c47d3a0a8cc7f4 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;