From 446700672b1a93b5d1ad38a2bbf600d4888aecac Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 1 Oct 2003 01:14:35 +0000 Subject: more g++-3 header issues. don't use the compat headers. --- sysutils/xosview/patches/patch-ai | 10 ++-- sysutils/xosview/patches/patch-al | 10 ++-- sysutils/xosview/patches/patch-am | 49 ++++----------- sysutils/xosview/patches/patch-an | 22 +++---- sysutils/xosview/patches/patch-aq | 122 +++++++++++--------------------------- sysutils/xosview/patches/patch-ar | 9 +++ sysutils/xosview/patches/patch-as | 9 +++ sysutils/xosview/patches/patch-at | 14 +++++ sysutils/xosview/patches/patch-au | 19 ++++++ sysutils/xosview/patches/patch-av | 16 +++++ 10 files changed, 130 insertions(+), 150 deletions(-) create mode 100644 sysutils/xosview/patches/patch-ar create mode 100644 sysutils/xosview/patches/patch-as create mode 100644 sysutils/xosview/patches/patch-at create mode 100644 sysutils/xosview/patches/patch-au create mode 100644 sysutils/xosview/patches/patch-av (limited to 'sysutils') diff --git a/sysutils/xosview/patches/patch-ai b/sysutils/xosview/patches/patch-ai index f69068151dd..057b5dfdba5 100644 --- a/sysutils/xosview/patches/patch-ai +++ b/sysutils/xosview/patches/patch-ai @@ -1,15 +1,17 @@ -$NetBSD: patch-ai,v 1.1 2003/09/30 23:03:59 christos Exp $ +$NetBSD: patch-ai,v 1.2 2003/10/01 01:14:35 christos Exp $ --- bsd/btrymeter.cc.orig 1999-02-16 09:09:22.000000000 -0500 -+++ bsd/btrymeter.cc 2003-09-30 18:39:27.000000000 -0400 -@@ -11,6 +11,7 @@ ++++ bsd/btrymeter.cc 2003-09-30 21:07:12.000000000 -0400 +@@ -11,7 +11,8 @@ // #include "btrymeter.h" #include "xosview.h" +-#include +#include - #include ++#include #include + #include @@ -52,7 +53,7 @@ int loadinfo = open(APMFILENAME, O_RDONLY, 0); diff --git a/sysutils/xosview/patches/patch-al b/sysutils/xosview/patches/patch-al index 8c357c1bb53..1e6ad32e578 100644 --- a/sysutils/xosview/patches/patch-al +++ b/sysutils/xosview/patches/patch-al @@ -1,11 +1,13 @@ -$NetBSD: patch-al,v 1.2 2003/10/01 00:33:54 christos Exp $ +$NetBSD: patch-al,v 1.3 2003/10/01 01:14:35 christos Exp $ --- fieldmeter.cc.orig 1999-02-16 09:08:35.000000000 -0500 -+++ fieldmeter.cc 2003-09-30 20:28:39.000000000 -0400 -@@ -8,2 +8,3 @@ ++++ fieldmeter.cc 2003-09-30 20:48:22.000000000 -0400 +@@ -8,3 +8,4 @@ // +-#include +#include - #include ++#include + #include @@ -296,10 +297,10 @@ || (x > x_ + width_) || (x + width > x_ + width_)){ - cerr << "FieldMeter::checkX() : bad horiz values for meter : " diff --git a/sysutils/xosview/patches/patch-am b/sysutils/xosview/patches/patch-am index bb33d551a0e..b4a58350cd7 100644 --- a/sysutils/xosview/patches/patch-am +++ b/sysutils/xosview/patches/patch-am @@ -1,69 +1,44 @@ -$NetBSD: patch-am,v 1.2 2003/10/01 00:33:54 christos Exp $ +$NetBSD: patch-am,v 1.3 2003/10/01 01:14:35 christos Exp $ --- Xrm.cc.orig 1999-02-16 09:08:35.000000000 -0500 -+++ Xrm.cc 2003-09-30 18:44:38.000000000 -0400 -@@ -11,10 +11,13 @@ - #include - #include // For snprintf(). ++++ Xrm.cc 2003-09-30 20:34:27.000000000 -0400 +@@ -13,3 +13,3 @@ #include -#include +#include #include // for access(), etc. BCG - #include "snprintf.h" +@@ -17,2 +17,5 @@ #include "general.h" +#ifndef NULL +#define NULL 0 +#endif #include "Xrm.h" - #include "Xrmcommandline.h" - -@@ -29,7 +32,7 @@ - bool Xrm::_initialized = false; - +@@ -31,3 +34,3 @@ Xrm::Xrm(const char *instanceName, int argc, char **argv){ - cerr << " Error: This constructor is not supported yet.\n"; + std::cerr << " Error: This constructor is not supported yet." << std::endl; exit (-1); - _db = NULL; - _class = _instance = NULLQUARK; -@@ -114,7 +117,7 @@ - } - else +@@ -116,3 +119,3 @@ { - cerr << "Error: Xrm:loadAndMergeResources() called twice!\n"; + std::cerr << "Error: Xrm:loadAndMergeResources() called twice!" << std::endl; exit (-1); - } - // This is ugly code. According to X and Xt rules, many files need -@@ -218,14 +221,14 @@ - - +@@ -220,3 +223,3 @@ //------------ Some debugging functions follow. ----------------------- -inline ostream &operator<<(ostream &os, const XrmBinding &b){ +inline std::ostream &operator<<(std::ostream &os, const XrmBinding &b){ switch (b){ - case XrmBindTightly: - return os << "."; - case XrmBindLoosely: - return os << "*"; +@@ -227,3 +230,3 @@ default: - cerr <<"ostream operator<<(ostream &, const XrmBinding &) : " + std::cerr <<"std::ostream operator<<(std::ostream &, const XrmBinding &) : " <<"Unknown XrmBinding!"; - return os; - } -@@ -233,7 +236,7 @@ - return os; - } +@@ -235,3 +238,3 @@ -ostream &Xrm::dump(ostream &os) const { +std::ostream &Xrm::dump(std::ostream &os) const { os <<"--- Xrm --- class: " <drawFilledRectangle( x, y_, twidth, halfheight ); - } - - if ( manditory || (decay_[i] != lastDecayval_[i]) ){ +@@ -145,3 +146,3 @@ if (!checkX(decayx, decaytwidth)) - cerr <<__FILE__ << ":" << __LINE__ <drawFilledRectangle( decayx, y_+halfheight+1, - decaytwidth, height_ - halfheight-1); - } diff --git a/sysutils/xosview/patches/patch-aq b/sysutils/xosview/patches/patch-aq index ba02deb34cc..fad7e29ec62 100644 --- a/sysutils/xosview/patches/patch-aq +++ b/sysutils/xosview/patches/patch-aq @@ -1,169 +1,113 @@ -$NetBSD: patch-aq,v 1.1 2003/09/30 23:03:59 christos Exp $ +$NetBSD: patch-aq,v 1.2 2003/10/01 01:14:35 christos Exp $ --- xwin.cc.orig 1999-02-16 09:08:34.000000000 -0500 -+++ xwin.cc 2003-09-30 18:46:45.000000000 -0400 -@@ -3,6 +3,7 @@ - // - ++++ xwin.cc 2003-09-30 20:47:37.000000000 -0400 +@@ -5,2 +5,3 @@ #include +#include #include - #include - #include "snprintf.h" -@@ -22,8 +23,8 @@ - //----------------------------------------------------------------------------- - +@@ -24,4 +25,4 @@ XWin::XWin( int argc, char *argv[], int x, int y, int width, int height ){ - cerr << "This constructor call is not supported! (" << __FILE__ - << ":" << __LINE__ << ")" << endl; + std::cerr << "This constructor call is not supported! (" << __FILE__ + << ":" << __LINE__ << ")" << std::endl; exit (-1); - // FIXME BCG This constructor needs to do much of the work of the above - // one. Or, we need to drop this as a constructor. As it is, it is -@@ -134,7 +135,7 @@ - map(); - flush(); +@@ -136,3 +137,3 @@ if(XGetWindowAttributes(display_, window_, &attr_) == 0){ - cerr <<"Error getting attributes of Main." <flags = (InputHint|StateHint); -@@ -182,11 +183,11 @@ - - // Set up XTextProperty for window name and icon name +@@ -184,3 +185,3 @@ if(XStringListToTextProperty(&name_, 1, &title_) == 0){ - cerr <<"Error creating XTextProperty!" <flags = PSize; -@@ -350,7 +351,7 @@ - #if 0 - void XWin::usage( void ){ +@@ -352,3 +353,3 @@ // FIXME We need to update this. BCG - cerr < ++#include + #include +@@ -99,3 +99,3 @@ + return (!strncasecmp(getResource(name),"True", 5)); } +- void dumpResources( ostream &os ); ++ void dumpResources(std::ostream &os ); + +@@ -107,3 +107,3 @@ - friend XWin; + friend class XWin; - void callBack( XEvent &event ) - { if ( event.type == event_ ) (parent_->*callBack_)( event ); } diff --git a/sysutils/xosview/patches/patch-ar b/sysutils/xosview/patches/patch-ar new file mode 100644 index 00000000000..235a43e1d8d --- /dev/null +++ b/sysutils/xosview/patches/patch-ar @@ -0,0 +1,9 @@ +$NetBSD: patch-ar,v 1.1 2003/10/01 01:14:35 christos Exp $ + +--- llist.cc.orig 2003-09-30 20:46:58.000000000 -0400 ++++ llist.cc 2003-09-30 20:47:04.000000000 -0400 +@@ -8,3 +8,3 @@ + // +-#include ++#include + #include "general.h" diff --git a/sysutils/xosview/patches/patch-as b/sysutils/xosview/patches/patch-as new file mode 100644 index 00000000000..b31dc20bf1c --- /dev/null +++ b/sysutils/xosview/patches/patch-as @@ -0,0 +1,9 @@ +$NetBSD: patch-as,v 1.1 2003/10/01 01:14:35 christos Exp $ + +--- fieldmetergraph.cc.orig 2003-09-30 20:49:12.000000000 -0400 ++++ fieldmetergraph.cc 2003-09-30 20:49:19.000000000 -0400 +@@ -26,3 +26,3 @@ + +-#include ++#include + #include // For fabs() diff --git a/sysutils/xosview/patches/patch-at b/sysutils/xosview/patches/patch-at new file mode 100644 index 00000000000..b1929e9f168 --- /dev/null +++ b/sysutils/xosview/patches/patch-at @@ -0,0 +1,14 @@ +$NetBSD: patch-at,v 1.1 2003/10/01 01:14:35 christos Exp $ + +--- timer.h.orig 1999-02-16 09:08:34.000000000 -0500 ++++ timer.h 2003-09-30 20:44:15.000000000 -0400 +@@ -36,3 +36,3 @@ + +- ostream &printOn(ostream &os) const { ++ std::ostream &printOn(std::ostream &os) const { + return os <<"Timer : [" +@@ -49,3 +49,3 @@ + +-inline ostream &operator<<(ostream &os, const Timer &t){ ++inline std::ostream &operator<<(std::ostream &os, const Timer &t){ + return t.printOn(os); diff --git a/sysutils/xosview/patches/patch-au b/sysutils/xosview/patches/patch-au new file mode 100644 index 00000000000..60e76f7c204 --- /dev/null +++ b/sysutils/xosview/patches/patch-au @@ -0,0 +1,19 @@ +$NetBSD: patch-au,v 1.1 2003/10/01 01:14:35 christos Exp $ + +--- timeval.h.orig 2003-09-30 20:43:13.000000000 -0400 ++++ timeval.h 2003-09-30 20:45:02.000000000 -0400 +@@ -14,3 +14,3 @@ + #include +-#include ++#include + +@@ -31,3 +31,3 @@ + +- ostream &printOn(ostream &os) const { ++ std::ostream &printOn(std::ostream &os) const { + return os <<"(" < +-#endif +- +-#ifndef _G_HAVE_BOOL ++#include ++#ifndef __GNUC__ + /* Every GNU system has _G_config.h, I believe, which tells us -- cgit v1.2.3