From e15e607d7759af7446d0184999736512b12d0cb3 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Fri, 21 Sep 2012 17:16:09 -0700 Subject: [PATCH] librdmacm: Place container_of inside #ifdef verbs.h defines container_of. Only define it if not defined Signed-off-by: Sean Hefty --- src/cma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cma.c b/src/cma.c index d168df67..91bf1084 100755 --- a/src/cma.c +++ b/src/cma.c @@ -124,8 +124,10 @@ static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; static int abi_ver = RDMA_USER_CM_MAX_ABI_VERSION; int af_ib_support; +#ifndef container_of #define container_of(ptr, type, field) \ ((type *) ((void *)ptr - offsetof(type, field))) +#endif static void ucma_cleanup(void) { -- 2.46.0