summaryrefslogtreecommitdiff
path: root/games/lincity
diff options
context:
space:
mode:
authorwiz <wiz>2001-12-11 14:45:38 +0000
committerwiz <wiz>2001-12-11 14:45:38 +0000
commit3f166e89ba0b13b5173d56cc2d16cff839fc365a (patch)
treeb0dc6a935261cb880e37e51cc9d0899339f1938c /games/lincity
parent490fdabec33600c6b51951b24cf818f87ac94c55 (diff)
downloadpkgsrc-3f166e89ba0b13b5173d56cc2d16cff839fc365a.tar.gz
Fix compilation with gcc 2.95.3 (fix an error, and silence two warnings
while we're here). Reported by Robert Elz in pkg/14834, solved nearly according to his suggestions.
Diffstat (limited to 'games/lincity')
-rw-r--r--games/lincity/distinfo3
-rw-r--r--games/lincity/patches/patch-ac23
2 files changed, 25 insertions, 1 deletions
diff --git a/games/lincity/distinfo b/games/lincity/distinfo
index cac0657a036..f867a9b093a 100644
--- a/games/lincity/distinfo
+++ b/games/lincity/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2001/08/29 22:41:12 jlam Exp $
+$NetBSD: distinfo,v 1.4 2001/12/11 14:45:38 wiz Exp $
SHA1 (lincity-1.11.tar.gz) = b3b7fb00fffea90352fa5e5c6b7bf76d49cd493b
Size (lincity-1.11.tar.gz) = 475037 bytes
SHA1 (patch-aa) = 0f318f35627fc592a0f995e1cab99997c3ac79b8
SHA1 (patch-ab) = 09860dec60aefe24c020aa3daf130512ec893d09
+SHA1 (patch-ac) = 79fc1cc4588a28d6aa0b0620754523a09ff0a019
diff --git a/games/lincity/patches/patch-ac b/games/lincity/patches/patch-ac
new file mode 100644
index 00000000000..847eb40c766
--- /dev/null
+++ b/games/lincity/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2001/12/11 14:45:39 wiz Exp $
+
+--- lcx11.cxx.orig Fri Feb 26 02:17:54 1999
++++ lcx11.cxx
+@@ -715,7 +715,7 @@
+ #ifdef USE_IMAGES
+ Fgl_putbox_low (display.win, 0, 0,
+ x1, y1, x2 - x1, y2 - y1,
+- pixmap, (640 + BORDERX),
++ (unsigned char *)pixmap, (640 + BORDERX),
+ x1, y1);
+ #else
+ int x, y;
+@@ -1115,7 +1115,9 @@
+ init_icon_pixmap (int type)
+ {
+ unsigned char *g;
++#ifndef USE_IMAGES
+ int x, y;
++#endif
+ #ifdef ALLOW_PIX_DOUBLING
+ if (pix_double)
+ icon_pixmap[type] = XCreatePixmap (display.dpy, display.win