Skip site navigation (1)Skip section navigation (2)
Date:      8 May 2004 13:53:50 -0000
From:      Mark Daniel Reidel <ports@mark.reidel.info>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/66388: [MAINTAINER] games/crossfire-client: Fix build on gcc295
Message-ID:  <20040508135350.43538.qmail@karm.dyndns.org>
Resent-Message-ID: <200405081400.i48E0UGU060135@freefall.freebsd.org>

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

>Number:         66388
>Category:       ports
>Synopsis:       [MAINTAINER] games/crossfire-client: Fix build on gcc295
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 08 07:00:30 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mark Daniel Reidel
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD alu.reidel.info 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Fri Mar  5 17:22:58 CET
>Description:
- Fixes build on gcc295
>How-To-Repeat:
>Fix:

--- crossfire-client-1.7.0.patch begins here ---
diff -ruN --exclude=CVS /tmp/portbk/games/crossfire-client/files/patch-common-misc.c::gcc295 /usr/ports/games/crossfire-client/files/patch-common-misc.c::gcc295
--- /tmp/portbk/games/crossfire-client/files/patch-common-misc.c::gcc295	Thu Jan  1 01:00:00 1970
+++ /usr/ports/games/crossfire-client/files/patch-common-misc.c::gcc295	Sat May  8 15:32:54 2004
@@ -0,0 +1,17 @@
+--- common/misc.c.orig	Sat May  8 15:31:29 2004
++++ common/misc.c	Sat May  8 15:31:49 2004
+@@ -237,13 +237,13 @@
+ #ifndef WIN32
+     ChildProcess* cp=FirstChild;
+     ChildProcess* last=NULL;
++    ChildProcess* next;
+     for (;;){
+         if (!cp)
+             return; /*no child to monitor*/
+         if (waitpid(cp->pid,NULL,WNOHANG)){
+             /*pid is dead*/
+             LOG(LOG_INFO,"common::monitorChilds","Child %s died. Removing and closing pipes",cp->name?cp->name:"UNKNOWN");
+-            ChildProcess* next;
+             if (cp==LastChild)
+                 LastChild=last;
+             next=cp->next;
--- crossfire-client-1.7.0.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040508135350.43538.qmail>