summaryrefslogtreecommitdiff
path: root/src/own.hpp
diff options
context:
space:
mode:
authorAJ Lewis <aj.lewis@quantum.com>2011-11-09 15:22:20 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-11-09 15:22:20 +0100
commitc79abee6bcaa996f50be71bd1d3075e3affb469d (patch)
treeddbbe8d56fd65f0949b3f990472365a4b3e01f63 /src/own.hpp
parent89962a825697dd9eca057c032ec61de71b075539 (diff)
Get AIX 6.1 compiling again by making msg_t class explicit
Older versions of gcc have problems with in-line forward declarations when there's a naming conflict with a global symbol. Signed-off-by: AJ Lewis <aj.lewis@quantum.com> Expand the original patch to all such forward declarations. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/own.hpp')
-rw-r--r--src/own.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/own.hpp b/src/own.hpp
index ad5c452..2969ffd 100644
--- a/src/own.hpp
+++ b/src/own.hpp
@@ -32,6 +32,9 @@
namespace zmq
{
+ class ctx_t;
+ class io_thread_t;
+
// Base class for objects forming a part of ownership hierarchy.
// It handles initialisation and destruction of such objects.
@@ -44,10 +47,10 @@ namespace zmq
// The object is not living within an I/O thread. It has it's own
// thread outside of 0MQ infrastructure.
- own_t (class ctx_t *parent_, uint32_t tid_);
+ own_t (zmq::ctx_t *parent_, uint32_t tid_);
// The object is living within I/O thread.
- own_t (class io_thread_t *io_thread_, const options_t &options_);
+ own_t (zmq::io_thread_t *io_thread_, const options_t &options_);
// When another owned object wants to send command to this object
// it calls this function to let it know it should not shut down