summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-09-08 17:38:41 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-09-08 17:38:41 +0000
commitf12c1b1bed3988ccd1a43b941aad0e632b3e94f4 (patch)
tree3cbf62edb803ef9f49a68f719f8dea4dc8513f32 /cpp
parentc358479ca71b3cd2101ea6c39a4745221acf28aa (diff)
downloadqpid-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.cpp2
-rw-r--r--cpp/src/qpid/sys/rdma/rdma_factories.h2
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);
}