From root@karm.dyndns.org  Sat May  8 06:53:52 2004
Return-Path: <root@karm.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AFD8C16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 May 2004 06:53:52 -0700 (PDT)
Received: from karm.dyndns.org (213-182-119-232.teleos-web.de [213.182.119.232])
	by mx1.FreeBSD.org (Postfix) with SMTP id 41C1543D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 May 2004 06:53:51 -0700 (PDT)
	(envelope-from root@karm.dyndns.org)
Received: (qmail 43539 invoked by uid 0); 8 May 2004 13:53:50 -0000
Message-Id: <20040508135350.43538.qmail@karm.dyndns.org>
Date: 8 May 2004 13:53:50 -0000
From: Mark Daniel Reidel <ports@mark.reidel.info>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] games/crossfire-client: Fix build on gcc295
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         66388
>Category:       ports
>Synopsis:       [MAINTAINER] games/crossfire-client: Fix build on gcc295
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mezz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 08 07:00:30 PDT 2004
>Closed-Date:    Mon May 10 21:42:18 PDT 2004
>Last-Modified:  Mon May 10 21:42:18 PDT 2004
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->mezz 
Responsible-Changed-By: mezz 
Responsible-Changed-When: Mon May 10 18:27:03 PDT 2004 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66388 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Mon May 10 21:42:01 PDT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66388 
>Unformatted:
