From c565b6b7612723a95e6db0e35313859eff626b7b Mon Sep 17 00:00:00 2001 From: jmmv Date: Tue, 14 Jun 2005 17:03:37 +0000 Subject: Access static attributes through the class itself, not through an instance. Should fix build problem reported in PR pkg/29452 by A L Meyers. --- games/xbill/distinfo | 3 ++- games/xbill/patches/patch-ad | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 games/xbill/patches/patch-ad (limited to 'games/xbill') 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); -- cgit v1.2.3