$OpenBSD: patch-ompi_mca_btl_tcp_btl_tcp_component_c,v 1.3 2010/04/04 15:49:06 jasper Exp $

Quieten IPv4 usage.

--- ompi/mca/btl/tcp/btl_tcp_component.c.orig	Sun Apr  4 17:35:30 2010
+++ ompi/mca/btl/tcp/btl_tcp_component.c	Sun Apr  4 17:36:10 2010
@@ -562,6 +562,7 @@ static int mca_btl_tcp_component_create_listen(uint16_
         freeaddrinfo (res);
 
 #ifdef IPV6_V6ONLY
+#ifndef __OpenBSD__
         /* in case of AF_INET6, disable v4-mapped addresses */
         if (AF_INET6 == af_family) {
             int flg = 0;
@@ -571,6 +572,7 @@ static int mca_btl_tcp_component_create_listen(uint16_
                     "mca_btl_tcp_create_listen: unable to disable v4-mapped addresses\n");
             }
         }
+#endif /* __OpenBSD__ */
 #endif /* IPV6_V6ONLY */
     }
 #else
