diff options
author | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
commit | 4016b657973bba87caf75168ba70aaa85d556487 (patch) | |
tree | c2abaf9284f55964bea72a0b76f6b79070335858 /src/uuid.cpp | |
parent | 978e33ba253a997b41b331b449b474a5cee7bccc (diff) |
Imported Upstream version 2.1.11upstream/2.1.11
Diffstat (limited to 'src/uuid.cpp')
-rw-r--r-- | src/uuid.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/uuid.cpp b/src/uuid.cpp index d8cc2e8..35d854f 100644 --- a/src/uuid.cpp +++ b/src/uuid.cpp @@ -44,14 +44,22 @@ const char *zmq::uuid_t::to_string () return (char*) string_buf; } -#elif defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_NETBSD +#elif defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_NETBSD || (defined ZMQ_HAVE_HPUX && defined HAVE_LIBDCEKT) #include <stdlib.h> -#include <uuid.h> +#ifdef ZMQ_HAVE_HPUX +# include <dce/uuid.h> +#else +# include <uuid.h> +#endif zmq::uuid_t::uuid_t () { +#ifdef ZMQ_HAVE_HPUX + unsigned32 status; +#else uint32_t status; +#endif uuid_create (&uuid, &status); zmq_assert (status == uuid_s_ok); uuid_to_string (&uuid, &string_buf, &status); @@ -67,7 +75,7 @@ zmq::uuid_t::~uuid_t () const char *zmq::uuid_t::to_string () { - return string_buf; + return (char*) string_buf; } #elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS ||\ |