From a8117a04f75af7bf82cefa0850254c183e15f995 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 18 Nov 2009 06:11:59 +0000 Subject: Changes to compile under SunCC 5.10 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881679 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/Uuid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing/Uuid.cpp') diff --git a/cpp/src/qpid/framing/Uuid.cpp b/cpp/src/qpid/framing/Uuid.cpp index 71fa6a7329..f7c13ad8d4 100644 --- a/cpp/src/qpid/framing/Uuid.cpp +++ b/cpp/src/qpid/framing/Uuid.cpp @@ -43,7 +43,9 @@ Uuid::Uuid(const uint8_t* data) { } void Uuid::assign(const uint8_t* data) { - uuid_copy(c_array(), data); + // This const cast is for Solaris which has a + // uuid_copy that takes a non const 2nd argument + uuid_copy(c_array(), const_cast(data)); } void Uuid::generate() { -- cgit v1.2.1