diff --git a/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c b/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c index 7e45b6a64e..5dfb63cb6f 100644 --- a/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c +++ b/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c @@ -400,7 +400,7 @@ static int udcm_component_query(mca_btl_openib_module_t *btl, /* If we do not have struct ibv_device.transport_device, then we're in an old version of OFED that is IB only (i.e., no iWarp), so we can safely assume that we can use this CPC. */ -#if defined(HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE) && OMPI_HAVE_IBV_LINK_LAYER +#if defined(HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE) && defined(HAVE_IBV_LINK_LAYER_ETHERNET) if (BTL_OPENIB_CONNECT_BASE_CHECK_IF_NOT_IB(btl)) { BTL_VERBOSE(("UD CPC only supported on InfiniBand; skipped on %s:%d", ibv_get_device_name(btl->device->ib_dev),