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 | f12c1b1bed3988ccd1a43b941aad0e632b3e94f4 (patch) | |
tree | 3cbf62edb803ef9f49a68f719f8dea4dc8513f32 /cpp | |
parent | c358479ca71b3cd2101ea6c39a4745221acf28aa (diff) | |
download | qpid-python-f12c1b1bed3988ccd1a43b941aad0e632b3e94f4.tar.gz |
Fix to allow compilation with libibverbs 1.1.2
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/sys/rdma/rdma_factories.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/sys/rdma/rdma_factories.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/rdma/rdma_factories.cpp b/cpp/src/qpid/sys/rdma/rdma_factories.cpp index 7090f12e89..a66f5b4035 100644 --- a/cpp/src/qpid/sys/rdma/rdma_factories.cpp +++ b/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/cpp/src/qpid/sys/rdma/rdma_factories.h b/cpp/src/qpid/sys/rdma/rdma_factories.h index eded68976c..bfca71fc7e 100644 --- a/cpp/src/qpid/sys/rdma/rdma_factories.h +++ b/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); } |