diff options
author | jperkin <jperkin@pkgsrc.org> | 2013-09-12 20:50:54 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2013-09-12 20:50:54 +0000 |
commit | f1b09ff41b5a92907fea2024575977488a9fac88 (patch) | |
tree | 0f2dc997a1bc99b9a1e65fda26cc3e7edc552a08 /games | |
parent | 53e9a4a30cc4a8d0895b061d96a0b2929bac4ebe (diff) | |
download | pkgsrc-f1b09ff41b5a92907fea2024575977488a9fac88.tar.gz |
Avoid ambiguous overloading of fabs(). Fixes build on SunOS.
Diffstat (limited to 'games')
-rw-r--r-- | games/kdetoys3/distinfo | 3 | ||||
-rw-r--r-- | games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/games/kdetoys3/distinfo b/games/kdetoys3/distinfo index d87eced0623..a7d881ba8c6 100644 --- a/games/kdetoys3/distinfo +++ b/games/kdetoys3/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.34 2008/08/27 12:24:06 markd Exp $ +$NetBSD: distinfo,v 1.35 2013/09/12 20:50:54 jperkin Exp $ SHA1 (kdetoys-3.5.10.tar.bz2) = 04d63656e4306e6266d018709975188ef9804949 RMD160 (kdetoys-3.5.10.tar.bz2) = 319ea23ef3ffd0e2e178e1b94302f1d2ace55b47 Size (kdetoys-3.5.10.tar.bz2) = 3272160 bytes +SHA1 (patch-kmoon_kmoonwidget.cpp) = 07ae0a01c72b1ca4b5dc10fc0acaf2d8489ccc58 diff --git a/games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp b/games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp new file mode 100644 index 00000000000..efee7cc33b8 --- /dev/null +++ b/games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-kmoon_kmoonwidget.cpp,v 1.1 2013/09/12 20:50:54 jperkin Exp $ + +Avoid "error: call of overloaded <func> is ambiguous". + +--- kmoon/kmoonwidget.cpp.orig 2005-10-10 14:58:36.000000000 +0000 ++++ kmoon/kmoonwidget.cpp +@@ -285,7 +285,7 @@ void MoonWidget::renderGraphic() + + if (QPixmap::defaultDepth() > 8) { + +- if (fabs(_angle)!=0) { // nothing to rotate ++ if (fabs((float)_angle)!=0) { // nothing to rotate + //We expand the image 2x before rotating, rotate it, and then average out + //the pixel for better quality + int dmw = 2 * mw; |