diff options
author | wiz <wiz@pkgsrc.org> | 2001-12-11 14:45:38 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-12-11 14:45:38 +0000 |
commit | f614f9f5dbf6abb53888e47d44abab88612581a4 (patch) | |
tree | b0dc6a935261cb880e37e51cc9d0899339f1938c | |
parent | 154b9daf7c9f8dc1a145d521d5ba318deaa88004 (diff) | |
download | pkgsrc-f614f9f5dbf6abb53888e47d44abab88612581a4.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.
-rw-r--r-- | games/lincity/distinfo | 3 | ||||
-rw-r--r-- | games/lincity/patches/patch-ac | 23 |
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 |