summaryrefslogtreecommitdiff
path: root/games/xroach/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-12-07 09:22:13 +0000
committerwiz <wiz@pkgsrc.org>2001-12-07 09:22:13 +0000
commitd6668557ffacb9e1fe10441168749a7c11cc3c41 (patch)
treef64af80116643b4570d3f0c307b9588d42b8d2a3 /games/xroach/patches
parenteb8f266f516987d6ebc935cc8c96ae6c8b12e167 (diff)
downloadpkgsrc-d6668557ffacb9e1fe10441168749a7c11cc3c41.tar.gz
Fix compilation with gcc 2.95.3. Problem report and patch by Robert Elz
from pkg/14860.
Diffstat (limited to 'games/xroach/patches')
-rw-r--r--games/xroach/patches/patch-ab24
1 files changed, 21 insertions, 3 deletions
diff --git a/games/xroach/patches/patch-ab b/games/xroach/patches/patch-ab
index f9b9832e46c..b8386ffbcd7 100644
--- a/games/xroach/patches/patch-ab
+++ b/games/xroach/patches/patch-ab
@@ -1,7 +1,16 @@
-$NetBSD: patch-ab,v 1.1 2000/10/06 10:30:13 pooka Exp $
+$NetBSD: patch-ab,v 1.2 2001/12/07 09:22:13 wiz Exp $
---- xroach.c.orig Fri Jun 4 22:47:09 1993
-+++ xroach.c Fri Oct 6 13:27:47 2000
+--- xroach.c.orig Fri Jun 4 21:47:09 1993
++++ xroach.c
+@@ -77,7 +77,7 @@
+ int MarkHiddenRoaches();
+ Pixel AllocNamedColor();
+
+-void
++int
+ main(ac, av)
+ int ac;
+ char *av[];
@@ -115,7 +115,7 @@
}
}
@@ -11,3 +20,12 @@ $NetBSD: patch-ab,v 1.1 2000/10/06 10:30:13 pooka Exp $
/*
Catch some signals so we can erase any visible roaches.
+@@ -212,6 +212,8 @@
+ CoverRoot();
+
+ XCloseDisplay(display);
++
++ exit(0);
+ }
+
+ #define USEPRT(msg) fprintf(stderr, msg)