$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 +#include 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;