Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Aug 2004 22:43:02 +0300
From:      Andrey Slusar <vasallia@ukr.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69881: [PATCH] x11-wm/hackedbox: fix build with gcc3.4
Message-ID:  <E1BrMEY-0002a2-BV@santinel.home.ua>
Resent-Message-ID: <200408011950.i71JoNtR053532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69881
>Category:       ports
>Synopsis:       [PATCH] x11-wm/hackedbox: fix build with gcc3.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 01 19:50:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Jul 29 19:48:26 EEST 2004 root@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	New file: files/patch-src-Timer.hh

	Fix build with gcc3.4
>How-To-Repeat:
	
>Fix:

--- hackedbox.diff begins here ---
diff -ruN /usr/ports/x11-wm/hackedbox/files/patch-src-Timer.hh hackedbox/files/patch-src-Timer.hh
--- /usr/ports/x11-wm/hackedbox/files/patch-src-Timer.hh	Thu Jan  1 03:00:00 1970
+++ hackedbox/files/patch-src-Timer.hh	Sun Aug  1 22:33:50 2004
@@ -0,0 +1,15 @@
+--- src/Timer.hh.old	Sun Aug  1 22:30:04 2004
++++ src/Timer.hh	Sun Aug  1 22:33:02 2004
+@@ -98,9 +98,10 @@
+   ~_timer_queue(void) {}
+ 
+   void release(const _Tp& value) {
+-    c.erase(std::remove(c.begin(), c.end(), value), c.end());
++    _Base::c.erase(std::remove(_Base::c.begin(), _Base::c.end(), value),
++							_Base::c.end());
+     // after removing the item we need to make the heap again
+-    std::make_heap(c.begin(), c.end(), comp);
++    std::make_heap(_Base::c.begin(), _Base::c.end(), _Base::comp);
+   }
+   bool empty(void) const { return _Base::empty(); }
+   size_t size(void) const { return _Base::size(); }
--- hackedbox.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BrMEY-0002a2-BV>