pkgsrc/games/simgear/patches/patch-simgear_scene_sky_cloud_cxx
dholland 796ff6b425 Update to 2.8.0; fixes build with current boost.
Build system changed to cmake.

Rename patch-ab; the other pre-existing patches do not appear to be
needed any further.

No recent upstream news or changelog appears to exist. The project
home page doesn't admit the existence of versions newer than 2.0.0,
but there are several, corresponding to the recent versions of
FlightGear.
2012-09-30 01:50:15 +00:00

24 lines
805 B
Text

$NetBSD: patch-simgear_scene_sky_cloud_cxx,v 1.1 2012/09/30 01:50:16 dholland Exp $
Fix build failure on NetBSD.
--- simgear/scene/sky/cloud.cxx.orig 2012-08-16 14:20:29.000000000 +0000
+++ simgear/scene/sky/cloud.cxx
@@ -27,7 +27,7 @@
#include <sstream>
-#include <math.h>
+#include <cmath>
#include <simgear/structure/OSGVersion.hxx>
#include <osg/AlphaFunc>
@@ -733,7 +733,7 @@ bool SGCloudLayer::reposition( const SGV
// 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;