summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-11-05 18:46:57 +0000
committerrillig <rillig@pkgsrc.org>2006-11-05 18:46:57 +0000
commit85e857350db7eb3fae257e75d1533db2cd6ca015 (patch)
tree7cd28d1146a96c907bff7175340a2fd247e061dd /games
parentdb76217897dd3d78dcf7ed255ef83583142056ff (diff)
downloadpkgsrc-85e857350db7eb3fae257e75d1533db2cd6ca015.tar.gz
Added a patch for SunPro.
Diffstat (limited to 'games')
-rw-r--r--games/xmahjongg/distinfo3
-rw-r--r--games/xmahjongg/patches/patch-ac18
2 files changed, 20 insertions, 1 deletions
diff --git a/games/xmahjongg/distinfo b/games/xmahjongg/distinfo
index b90229acbac..238e364455b 100644
--- a/games/xmahjongg/distinfo
+++ b/games/xmahjongg/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2006/06/02 09:08:15 martin Exp $
+$NetBSD: distinfo,v 1.7 2006/11/05 18:46:57 rillig Exp $
SHA1 (xmahjongg-3.6.1.tar.gz) = 35e380e53412568e6af7f4fcc1677693f52fc60e
RMD160 (xmahjongg-3.6.1.tar.gz) = acfc0161322b22296639dff313bae8d57e012618
Size (xmahjongg-3.6.1.tar.gz) = 462833 bytes
SHA1 (patch-aa) = 5305cfb0c0c8c0fcc507bc3730043331255a94a5
SHA1 (patch-ab) = d3c2574c8de7e85c8e38670017d0eda64fe3b0be
+SHA1 (patch-ac) = f8ea278393d81ad0503350f88c7b3a352b78bf22
diff --git a/games/xmahjongg/patches/patch-ac b/games/xmahjongg/patches/patch-ac
new file mode 100644
index 00000000000..565e772d9be
--- /dev/null
+++ b/games/xmahjongg/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1 2006/11/05 18:46:58 rillig Exp $
+
+SunPro sees an overloading ambiguity between operator bool() and
+operator const char *().
+
+--- permstr.cc.orig 2001-09-06 20:30:10.000000000 +0200
++++ permstr.cc 2006-11-05 19:12:50.020399608 +0100
+@@ -183,8 +183,8 @@ PermString::static_initialize()
+ bool
+ operator==(PermString a, const char *b)
+ {
+- if (!a || !b)
+- return !a && !b;
++ if (a == false || !b)
++ return (a == false) && !b;
+ int l = strlen(b);
+ return a.length() == l && memcmp(a.cc(), b, l) == 0;
+ }