summaryrefslogtreecommitdiff
path: root/games/xmahjongg
diff options
context:
space:
mode:
authormartin <martin>2006-11-09 13:45:33 +0000
committermartin <martin>2006-11-09 13:45:33 +0000
commit0d2f09363898f13b7d47b5cac6c4b44c08155d56 (patch)
tree4ea536f704c9474d11cb07e6d5687a3336bc4645 /games/xmahjongg
parent445a00402c92f5853d52d3874e64764bc80717c2 (diff)
downloadpkgsrc-0d2f09363898f13b7d47b5cac6c4b44c08155d56.tar.gz
Make it compile with gcc 4.x again
Diffstat (limited to 'games/xmahjongg')
-rw-r--r--games/xmahjongg/distinfo4
-rw-r--r--games/xmahjongg/patches/patch-ac12
2 files changed, 8 insertions, 8 deletions
diff --git a/games/xmahjongg/distinfo b/games/xmahjongg/distinfo
index 238e364455b..caf9e939804 100644
--- a/games/xmahjongg/distinfo
+++ b/games/xmahjongg/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2006/11/05 18:46:57 rillig Exp $
+$NetBSD: distinfo,v 1.8 2006/11/09 13:45:33 martin 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
+SHA1 (patch-ac) = ea3083eff9216833153c1ad68e31a4282938e9d9
diff --git a/games/xmahjongg/patches/patch-ac b/games/xmahjongg/patches/patch-ac
index 565e772d9be..6c189076093 100644
--- a/games/xmahjongg/patches/patch-ac
+++ b/games/xmahjongg/patches/patch-ac
@@ -1,18 +1,18 @@
-$NetBSD: patch-ac,v 1.1 2006/11/05 18:46:58 rillig Exp $
+$NetBSD: patch-ac,v 1.2 2006/11/09 13:45:33 martin Exp $
SunPro sees an overloading ambiguity between operator bool() and
-operator const char *().
+operator const char *(). ISO C++ and gcc 4.2 agree.
--- 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()
++++ permstr.cc 2006-11-09 14:35:55.000000000 +0100
+@@ -183,8 +183,8 @@
bool
operator==(PermString a, const char *b)
{
- if (!a || !b)
- return !a && !b;
-+ if (a == false || !b)
-+ return (a == false) && !b;
++ if (operator==(a, false) || !b)
++ return (operator==(a, false)) && !b;
int l = strlen(b);
return a.length() == l && memcmp(a.cc(), b, l) == 0;
}