head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.36 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.34 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.32 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.30 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.28 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.26 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.24 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.22 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.20 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.3.0.18 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.16 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.14 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.12 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.10 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.8 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.6 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.4 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.2 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.1.0.2 pkgsrc-2005Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2006.03.14.15.48.01; author rillig; state dead; branches; next 1.2; 1.2 date 2006.02.18.10.12.24; author rillig; state Exp; branches; next 1.1; 1.1 date 2005.11.17.15.53.01; author rillig; state Exp; branches; next ; desc @@ 1.3 log @Updated xosview to 1.8.3. All our patches have been applied upstream. @ text @$NetBSD: patch-bd,v 1.2 2006/02/18 10:12:24 rillig Exp $ Status: applied upstream. The Solaris SunPro compiler does not know the old header. I fixed it to use the new one. The #define is ugly, but I wanted to keep the patch short. --- sunos5/cpumeter.cc.orig 1999-01-31 21:26:38.000000000 +0100 +++ sunos5/cpumeter.cc 2005-02-22 14:44:47.640675500 +0100 @@@@ -8,7 +8,10 @@@@ #include #include #include -#include +#include + +#define ostrstream std::ostringstream +using std::ends; CPUMeter::CPUMeter(XOSView *parent, kstat_ctl_t *_kc, int cpuid) : FieldMeterGraph(parent, CPU_STATES, toUpper(cpuStr(cpuid)), @@@@ -91,15 +94,15 @@@@ const char *CPUMeter::toUpper(const char const char *CPUMeter::cpuStr(int num) { - static char buffer[32]; - ostrstream str(buffer, 32); + static std::string buffer; + std::ostringstream str(buffer); str << "cpu"; if (num != 0) str << (num - 1); str << ends; - return buffer; + return buffer.c_str(); } int CPUMeter::countCPUs(kstat_ctl_t *kc) @ 1.2 log @The patches have been applied upstream. @ text @d1 1 a1 1 $NetBSD: patch-bd,v 1.1 2005/11/17 15:53:01 rillig Exp $ @ 1.1 log @Added five patches to make xosview build with SunPro on Solaris 9. Bumped PKGREVISION. @ text @d1 3 a3 1 $NetBSD$ @