From 293954d5e2bf421c4cc96473384b23a02cdefca6 Mon Sep 17 00:00:00 2001 From: jperkin Date: Thu, 12 Sep 2013 20:50:54 +0000 Subject: Avoid ambiguous overloading of fabs(). Fixes build on SunOS. --- games/kdetoys3/distinfo | 3 ++- games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 games/kdetoys3/patches/patch-kmoon_kmoonwidget.cpp (limited to 'games/kdetoys3') 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 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; -- cgit v1.2.3