diff options
author | bz <bz@FreeBSD.org> | 2016-04-24 15:56:05 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-04-24 15:56:05 +0000 |
commit | 7e82be83a8573584103ceccb5becacd963e2647c (patch) | |
tree | 357125d4b4dc9c3fda7054f4ead890bc6d5ff32b /sys/ofed/drivers/infiniband | |
parent | 321befd162b51c73e8258339ae91022cef745f40 (diff) | |
download | FreeBSD-src-7e82be83a8573584103ceccb5becacd963e2647c.zip FreeBSD-src-7e82be83a8573584103ceccb5becacd963e2647c.tar.gz |
Fix NOIP kernels to compile.
Diffstat (limited to 'sys/ofed/drivers/infiniband')
-rw-r--r-- | sys/ofed/drivers/infiniband/core/cma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ofed/drivers/infiniband/core/cma.c b/sys/ofed/drivers/infiniband/core/cma.c index 3aa3f17..aa1f2ec 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 |