aboutsummaryrefslogtreecommitdiffstats
path: root/games/crossfire-client
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2004-05-11 12:41:44 +0800
committermezz <mezz@FreeBSD.org>2004-05-11 12:41:44 +0800
commitcf1324e235a34a98b46e99137275cc6d893bba38 (patch)
treefd59019ef93d0650381fe951d0d2374e9a08ba50 /games/crossfire-client
parentb7e6e18e7f737feb43758a94ecf603dfb7d717a0 (diff)
downloadfreebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.tar.gz
freebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.tar.zst
freebsd-ports-gnome-cf1324e235a34a98b46e99137275cc6d893bba38.zip
Fix the build on 4.x.
PR: ports/66388 Submitted by: Mark Daniel Reidel <ports@mark.reidel.info> (maintainer) Approved by: adamw (mentor)
Diffstat (limited to 'games/crossfire-client')
-rw-r--r--games/crossfire-client/files/patch-common::misc.c17
1 files changed, 17 insertions, 0 deletions
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;