From 43c47254b5f4f8c9ba5a4a0021207bd45e9da253 Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Tue, 11 May 2004 04:41:44 +0000 Subject: Fix the build on 4.x. PR: ports/66388 Submitted by: Mark Daniel Reidel (maintainer) Approved by: adamw (mentor) --- games/crossfire-client/files/patch-common::misc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 games/crossfire-client/files/patch-common::misc.c (limited to 'games/crossfire-client') diff --git a/games/crossfire-client/files/patch-common::misc.c b/games/crossfire-client/files/patch-common::misc.c new file mode 100644 index 000000000000..ce7017952be4 --- /dev/null +++ b/games/crossfire-client/files/patch-common::misc.c @@ -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; -- cgit v1.2.3