summaryrefslogtreecommitdiff
path: root/games/xbill
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-06-14 17:03:37 +0000
committerjmmv <jmmv>2005-06-14 17:03:37 +0000
commitc565b6b7612723a95e6db0e35313859eff626b7b (patch)
treeb27b47b7df0ee1abcaa85fba18eaffae3498dc23 /games/xbill
parentf81bfce95928e4fd8a1739bcac2d9fbccedae026 (diff)
downloadpkgsrc-c565b6b7612723a95e6db0e35313859eff626b7b.tar.gz
Access static attributes through the class itself, not through an instance.
Should fix build problem reported in PR pkg/29452 by A L Meyers.
Diffstat (limited to 'games/xbill')
-rw-r--r--games/xbill/distinfo3
-rw-r--r--games/xbill/patches/patch-ad34
2 files changed, 36 insertions, 1 deletions
diff --git a/games/xbill/distinfo b/games/xbill/distinfo
index 1720ed64f8f..5d9c4307fcc 100644
--- a/games/xbill/distinfo
+++ b/games/xbill/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2005/02/23 23:12:03 agc Exp $
+$NetBSD: distinfo,v 1.9 2005/06/14 17:03:37 jmmv Exp $
SHA1 (xbill-2.0.tgz) = 4ce4e37687801343af5f57c28498bd0b969c0537
RMD160 (xbill-2.0.tgz) = 8f1551fb5f2bf7b620243ba4787c88c91d00d460
@@ -6,3 +6,4 @@ Size (xbill-2.0.tgz) = 46909 bytes
SHA1 (patch-aa) = e4fad0653c5dae7d7cef3d85bd934a35c9f3d498
SHA1 (patch-ab) = 245573e1ea2223ed1bde91c16db81a658bfcc8f6
SHA1 (patch-ac) = c3dd487d0002f528f6726d268673bc11be0b24b6
+SHA1 (patch-ad) = 841d5ff9bbd984b62076a96e82b04e082d09a40c
diff --git a/games/xbill/patches/patch-ad b/games/xbill/patches/patch-ad
new file mode 100644
index 00000000000..a3444887811
--- /dev/null
+++ b/games/xbill/patches/patch-ad
@@ -0,0 +1,34 @@
+$NetBSD: patch-ad,v 1.1 2005/06/14 17:03:37 jmmv Exp $
+
+--- UI.cc.orig 1997-01-23 17:22:51.000000000 +0100
++++ UI.cc
+@@ -125,10 +125,10 @@ void UI::make_windows() {
+ void UI::popup_dialog (int dialog) {
+ Widget w;
+ switch (dialog) {
+- case game.ENTERNAME: w = enternamebox; break;
+- case game.HIGHSCORE: w = highscorebox; break;
+- case game.SCORE: w = scorebox; break;
+- case game.ENDGAME: w = endgamebox; break;
++ case Game::ENTERNAME: w = enternamebox; break;
++ case Game::HIGHSCORE: w = highscorebox; break;
++ case Game::SCORE: w = scorebox; break;
++ case Game::ENDGAME: w = endgamebox; break;
+ }
+ popup (NULL, &w, NULL);
+ }
+@@ -139,11 +139,11 @@ void UI::popup_dialog (int dialog) {
+
+ void UI::set_cursor(int cursor) {
+ switch (cursor) {
+- case game.BUCKETC:
++ case Game::BUCKETC:
+ XDefineCursor(display, window, bucket.cursor.cursor); break;
+- case game.DOWNC:
++ case Game::DOWNC:
+ XDefineCursor(display, window, downcursor.cursor); break;
+- case game.DEFAULTC:
++ case Game::DEFAULTC:
+ XDefineCursor(display, window, defaultcursor.cursor); break;
+ default:
+ XDefineCursor(display, window, OS.cursor[cursor].cursor);