1
1

oob_tcp_component: add #if OPAL_ENABLE_IPV6 around IPv6-specific code

This was CID 1196629
Этот коммит содержится в:
Jeff Squyres 2015-02-24 13:31:03 -05:00
родитель 657d2cf77b
Коммит 71ae0ad5ec

Просмотреть файл

@ -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, ',');