$NetBSD: patch-ac,v 1.2 2011/11/22 20:02:48 joerg Exp $ Sunpro has problems with a non-const const_reverse_iterator. --- src/Screen.cc.orig 2005-10-18 08:07:22.000000000 +0000 +++ src/Screen.cc @@ -47,7 +47,7 @@ #include #include #include - +#include static bool running = true; static int anotherWMRunning(Display *, XErrorEvent *) { @@ -492,8 +492,8 @@ void BScreen::setCurrentWorkspace(unsign // withdraw windows in reverse order to minimize the number of // Expose events - StackingList::const_reverse_iterator it = _stackingList.rbegin(); - const StackingList::const_reverse_iterator end = _stackingList.rend(); + StackingList::reverse_iterator it = _stackingList.rbegin(); + const StackingList::reverse_iterator end = _stackingList.rend(); for (; it != end; ++it) { BlackboxWindow *win = dynamic_cast(*it); if (win && win->workspace() == current_workspace)