diff options
author | kkeithle <kkeithle@precise.kkeithle.usersys.redhat.com> | 2015-03-26 11:55:57 -0400 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-03-27 04:37:15 -0700 |
commit | ae75db655b683bb47df1590c7815c90b7cbefe4b (patch) | |
tree | ed3d56e4853cedee95f9110d8632fd33210735c5 | |
parent | d5b6c5265524efe8f927066f342b89f12a531079 (diff) |
rdma: RDMA_OPTION_ID_REUSEADDR undeclared on Ubuntu Precise (LTS)
Very old release of Ubuntu LTSwq
Change-Id: Ib6fb4493f1f34ba853bd74c8037da7663639f40e
BUG: 1201484
Signed-off-by: kkeithle <kkeithle@precise.kkeithle.usersys.redhat.com>
Reviewed-on: http://review.gluster.org/10014
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r-- | rpc/rpc-transport/rdma/src/rdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c index f7667dbc9bd..5d94d8ad9c7 100644 --- a/rpc/rpc-transport/rdma/src/rdma.c +++ b/rpc/rpc-transport/rdma/src/rdma.c @@ -4676,6 +4676,8 @@ gf_rdma_listen (rpc_transport_t *this) sprintf (this->myinfo.identifier, "%s:%s", host, service); +#if defined(RDMA_OPTION_ID_REUSEADDR) +/* Ubuntu Precise LTS does not have RDMA_OPTION_ID_REUSEADDR */ ret = rdma_set_option(peer->cm_id, RDMA_OPTION_ID, RDMA_OPTION_ID_REUSEADDR, (void *)&optval, sizeof(optval)); @@ -4684,6 +4686,7 @@ gf_rdma_listen (rpc_transport_t *this) "rdma option set failed (%s)", strerror (errno)); goto err; } +#endif ret = rdma_bind_addr (peer->cm_id, &sock_union.sa); if (ret != 0) { |