mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 11:04:51 -04:00
27 lines
976 B
Plaintext
27 lines
976 B
Plaintext
$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 <assert.h>
|
|
#include <ctype.h>
|
|
#include <dirent.h>
|
|
-
|
|
+#include <string.h>
|
|
|
|
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<BlackboxWindow *>(*it);
|
|
if (win && win->workspace() == current_workspace)
|