ports/69881: [PATCH] x11-wm/hackedbox: fix build with gcc3.4

Andrey Slusar vasallia at ukr.net
Sun Aug 1 19:50:23 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list