diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 17:38:41 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 17:38:41 +0000 |
| commit | 29963ba634d62cd320c2f40b6be6d9cf02dd2195 (patch) | |
| tree | 5e738bf714bc462e6e46181200fdc4028ca50a36 /qpid/cpp/src | |
| parent | d40812f3b539240b114586db9a35afdc8af74cdf (diff) | |
| download | qpid-python-29963ba634d62cd320c2f40b6be6d9cf02dd2195.tar.gz | |
Fix to allow compilation with libibverbs 1.1.2
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@995165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/rdma/rdma_factories.cpp | 2 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/sys/rdma/rdma_factories.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/sys/rdma/rdma_factories.cpp b/qpid/cpp/src/qpid/sys/rdma/rdma_factories.cpp index 7090f12e89..a66f5b4035 100644 --- a/qpid/cpp/src/qpid/sys/rdma/rdma_factories.cpp +++ b/qpid/cpp/src/qpid/sys/rdma/rdma_factories.cpp @@ -87,7 +87,7 @@ namespace Rdma { return boost::shared_ptr< ::ibv_pd >(pd, deallocPd); } - boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, int access) { + boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, ::ibv_access_flags access) { ::ibv_mr* mr = CHECK_NULL(::ibv_reg_mr(pd, addr, length, access)); return boost::shared_ptr< ::ibv_mr >(mr, deregMr); } diff --git a/qpid/cpp/src/qpid/sys/rdma/rdma_factories.h b/qpid/cpp/src/qpid/sys/rdma/rdma_factories.h index eded68976c..bfca71fc7e 100644 --- a/qpid/cpp/src/qpid/sys/rdma/rdma_factories.h +++ b/qpid/cpp/src/qpid/sys/rdma/rdma_factories.h @@ -32,7 +32,7 @@ namespace Rdma { boost::shared_ptr< ::rdma_cm_event > mkEvent(::rdma_cm_event* e); boost::shared_ptr< ::ibv_qp > mkQp(::ibv_qp* qp); boost::shared_ptr< ::ibv_pd > allocPd(::ibv_context* c); - boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, int access); + boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, ::ibv_access_flags access); boost::shared_ptr< ::ibv_comp_channel > mkCChannel(::ibv_context* c); boost::shared_ptr< ::ibv_cq > mkCq(::ibv_context* c, int cqe, void* context, ::ibv_comp_channel* cc); } |
