diff --git a/ompi/mca/mtl/ofi/mtl_ofi_request.h b/ompi/mca/mtl/ofi/mtl_ofi_request.h index cb746f341db..47c4c621668 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_request.h +++ b/ompi/mca/mtl/ofi/mtl_ofi_request.h @@ -13,7 +13,9 @@ #ifndef OMPI_MTL_OFI_REQUEST_H #define OMPI_MTL_OFI_REQUEST_H -#include "mtl_ofi.h" +#ifndef container_of +# define container_of(ptr, type, member) ((type *) (((char *) (ptr)) - offsetof(type, member))) +#endif #define TO_OFI_REQ(_ptr_ctx) \ container_of((_ptr_ctx), struct ompi_mtl_ofi_request_t, ctx)