summaryrefslogtreecommitdiff
path: root/games/simgear/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'games/simgear/patches/patch-ac')
-rw-r--r--games/simgear/patches/patch-ac21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/simgear/patches/patch-ac b/games/simgear/patches/patch-ac
new file mode 100644
index 00000000000..323d864a380
--- /dev/null
+++ b/games/simgear/patches/patch-ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $
+
+--- simgear/scene/sky/cloudfield.cxx.orig 2007-07-12 19:58:48.000000000 +0200
++++ simgear/scene/sky/cloudfield.cxx
+@@ -34,6 +34,7 @@
+
+ #include STL_ALGORITHM
+ #include <vector>
++#include <cmath>
+
+ SG_USING_STD(vector);
+
+@@ -175,7 +176,7 @@ void SGCloudField::reposition( sgVec3 p,
+ // this happens, lets just use the last known good course.
+ // This is a hack, and it would probably be better to make
+ // calc_gc_course_dist() more robust.
+- if ( isnan(course) ) {
++ if ( std::isnan(course) ) {
+ course = last_course;
+ } else {
+ last_course = course;