summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-db
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-12-20 19:58:04 +0000
committerrillig <rillig@pkgsrc.org>2005-12-20 19:58:04 +0000
commit5b2b90ed5c9e8519f512d18584ed5a4ef5f0fe47 (patch)
tree09c1db536ff8621314b4f19be8361562b4166168 /x11/kdelibs3/patches/patch-db
parentd77e544f57011e03cce9c64fbd3ec17d07cfa4c7 (diff)
downloadpkgsrc-5b2b90ed5c9e8519f512d18584ed5a4ef5f0fe47.tar.gz
Added two patches that fix the build on NetBSD 1.6.2/i386.
Diffstat (limited to 'x11/kdelibs3/patches/patch-db')
-rw-r--r--x11/kdelibs3/patches/patch-db17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/kdelibs3/patches/patch-db b/x11/kdelibs3/patches/patch-db
new file mode 100644
index 00000000000..03229317f63
--- /dev/null
+++ b/x11/kdelibs3/patches/patch-db
@@ -0,0 +1,17 @@
+$NetBSD: patch-db,v 1.3 2005/12/20 19:58:04 rillig Exp $
+
+For some reason, g++-2.95 on NetBSD 1.6.2/i386 did not accept the ==
+operator here. The QT documentation says that using QString::compare is
+equivalent.
+
+--- khtml/rendering/font.h.orig Mon Oct 10 17:06:06 2005
++++ khtml/rendering/font.h Tue Dec 20 20:24:55 2005
+@@ -43,7 +43,7 @@ public:
+ FontDef()
+ : size( 0 ), italic( false ), smallCaps( false ), weight( 50 ), hasNbsp( true ) {}
+ bool operator == ( const FontDef &other ) const {
+- return ( family == other.family &&
++ return ( QString::compare(family, other.family) == 0 &&
+ size == other.size &&
+ italic == other.italic &&
+ smallCaps == other.smallCaps &&