From 77eab110a97d5f024083ec19c22f4b92f097c094 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Sun, 24 Apr 2016 15:56:05 +0000 Subject: [PATCH] Fix NOIP kernels to compile. --- sys/ofed/drivers/infiniband/core/cma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/ofed/drivers/infiniband/core/cma.c b/sys/ofed/drivers/infiniband/core/cma.c index 3aa3f1716ccc..aa1f2ec313dd 100644 --- a/sys/ofed/drivers/infiniband/core/cma.c +++ b/sys/ofed/drivers/infiniband/core/cma.c @@ -2319,6 +2319,7 @@ static int cma_bind_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, if (!cma_any_addr(src_addr)) return rdma_bind_addr(id, src_addr); else { +#if defined(INET6) || defined(INET) union { #ifdef INET struct sockaddr_in in; @@ -2327,6 +2328,7 @@ static int cma_bind_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, struct sockaddr_in6 in6; #endif } addr; +#endif switch(dst_addr->sa_family) { #ifdef INET