blob: 3740ad5719abb0481b7b05804c7ef5fdf8b39e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- a/ompi/mca/mtl/ofi/mtl_ofi_request.h 2023-09-30 18:23:17.000000000 +0300
+++ b/ompi/mca/mtl/ofi/mtl_ofi_request.h 2025-05-22 12:00:10.756845029 +0300
@@ -15,7 +15,12 @@
#include "mtl_ofi.h"
-#define TO_OFI_REQ(_ptr_ctx) \
+#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)
typedef enum {
|