From 71ae0ad5ec6d1d900854621361fca65e188db2b1 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Tue, 24 Feb 2015 13:31:03 -0500 Subject: [PATCH] oob_tcp_component: add #if OPAL_ENABLE_IPV6 around IPv6-specific code This was CID 1196629 --- orte/mca/oob/tcp/oob_tcp_component.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orte/mca/oob/tcp/oob_tcp_component.c b/orte/mca/oob/tcp/oob_tcp_component.c index 7057c387d0..89db27ad84 100644 --- a/orte/mca/oob/tcp/oob_tcp_component.c +++ b/orte/mca/oob/tcp/oob_tcp_component.c @@ -12,7 +12,7 @@ * All rights reserved. * Copyright (c) 2006-2014 Los Alamos National Security, LLC. * All rights reserved. - * Copyright (c) 2009-2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2011 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2013-2014 Intel, Inc. All rights reserved. * Copyright (c) 2014 NVIDIA Corporation. All rights reserved. @@ -752,6 +752,7 @@ static int component_set_addr(orte_process_name_t *peer, * end - we need to remove those extra characters */ hptr = host; +#if OPAL_ENABLE_IPV6 if (AF_INET6 == af_family) { if ('[' == host[0]) { hptr = &host[1]; @@ -760,6 +761,7 @@ static int component_set_addr(orte_process_name_t *peer, host[strlen(host)-1] = '\0'; } } +#endif addrs = opal_argv_split(hptr, ',');