Skip to content

Commit

Permalink
Fixing compile error when ibverbs parcelport was disabled at compile …
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
sithhell committed Mar 31, 2014
1 parent 729f5ca commit ad05ce7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/runtime/naming/locality.cpp
Expand Up @@ -32,7 +32,11 @@ namespace hpx { namespace naming

std::string port_str(boost::lexical_cast<std::string>(loc.get_port()));

#if defined(HPX_HAVE_PARCELPORT_IBVERBS)
std::string address = ibverbs ? loc.get_ibverbs_address() : loc.get_address();
#else
std::string address = loc.get_address();
#endif

// try to directly create an endpoint from the address
try {
Expand Down Expand Up @@ -94,7 +98,11 @@ namespace hpx { namespace naming
exception_list errors;

std::string port_str(boost::lexical_cast<std::string>(loc.get_port()));
#if defined(HPX_HAVE_PARCELPORT_IBVERBS)
std::string address = ibverbs ? loc.get_ibverbs_address() : loc.get_address();
#else
std::string address = loc.get_address();
#endif

// try to directly create an endpoint from the address
try {
Expand Down

0 comments on commit ad05ce7

Please sign in to comment.