From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 14 Mar 2008 20:06:40 -0000 Subject: [Cluster-devel] conga/ricci common/File.cpp common/Variable.cp ... Message-ID: <20080314200640.2548.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2008-03-14 20:06:39 Modified files: ricci/common : File.cpp Variable.cpp utils.cpp ricci/include : shred_allocator.h Log message: Fixes for building with gcc 4.3.0 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/File.cpp.diff?cvsroot=cluster&r1=1.7&r2=1.8 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/Variable.cpp.diff?cvsroot=cluster&r1=1.11&r2=1.12 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/utils.cpp.diff?cvsroot=cluster&r1=1.13&r2=1.14 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/include/shred_allocator.h.diff?cvsroot=cluster&r1=1.5&r2=1.6 --- conga/ricci/common/File.cpp 2008/01/02 20:47:34 1.7 +++ conga/ricci/common/File.cpp 2008/03/14 20:06:39 1.8 @@ -139,17 +139,17 @@ MutexLocker l(*_mutex); long len = size(); - const auto_ptr buff(new char[len]); + char buff[len]; try { ((fstream *) _pimpl->fs)->seekg(0, ios::beg); check_failed(); - ((fstream *) _pimpl->fs)->read(buff.get(), len); + ((fstream *) _pimpl->fs)->read(buff, len); check_failed(); - String ret(buff.get(), len); - ::shred(buff.get(), len); + String ret(buff, len); + ::shred(buff, len); return ret; } catch ( ... ) { - ::shred(buff.get(), len); + ::shred(buff, len); throw; } } --- conga/ricci/common/Variable.cpp 2008/01/02 20:47:34 1.11 +++ conga/ricci/common/Variable.cpp 2008/03/14 20:06:39 1.12 @@ -26,6 +26,8 @@ #include +#include +#include using namespace std; // ##### class Variable ##### --- conga/ricci/common/utils.cpp 2008/02/05 18:29:05 1.13 +++ conga/ricci/common/utils.cpp 2008/03/14 20:06:39 1.14 @@ -28,6 +28,7 @@ #include #include #include +#include #include //#include --- conga/ricci/include/shred_allocator.h 2007/09/18 21:01:00 1.5 +++ conga/ricci/include/shred_allocator.h 2008/03/14 20:06:39 1.6 @@ -33,6 +33,12 @@ #ifndef __CONGA_SHRED_ALLOCATOR_H #define __CONGA_SHRED_ALLOCATOR_H +extern "C" { + #include + #include + #include +} + #include template