[PATCH 2/2] QPID: Fixed build error introduced in proton 0.9


fquinn.ni@...
 

From: Frank Quinn <fquinn.ni@gmail.com>

---
mama/c_cpp/src/c/bridge/qpid/qpiddefs.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/mama/c_cpp/src/c/bridge/qpid/qpiddefs.h b/mama/c_cpp/src/c/bridge/qpid/qpiddefs.h
index cd52e96..79ddbc4 100644
--- a/mama/c_cpp/src/c/bridge/qpid/qpiddefs.h
+++ b/mama/c_cpp/src/c/bridge/qpid/qpiddefs.h
@@ -32,7 +32,6 @@
#include <list.h>

/* Qpid include files */
-#include <proton/driver.h>
#include <proton/message.h>
#include <proton/messenger.h>

@@ -87,6 +86,10 @@ typedef enum qpidMsgType_
#if (PN_VERSION_MAJOR == 0 && PN_VERSION_MINOR <= 7)
#include <proton/util.h>
#endif
+#if (PN_VERSION_MAJOR == 0 && PN_VERSION_MINOR <= 8)
+/* The proton header driver.h was removed in version 0.9 */
+#include <proton/driver.h>
+#endif

/* Place other version specific macros here */

--
1.7.1