$NetBSD: patch-ad,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $ --- simgear/sound/soundmgr_openal.cxx.orig 2007-07-12 20:01:48.000000000 +0200 +++ simgear/sound/soundmgr_openal.cxx @@ -37,6 +37,8 @@ # include #endif +#include + #if defined (__APPLE__) # ifdef __GNUC__ # if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 ) @@ -310,7 +312,7 @@ bool SGSoundMgr::stop( const string& ref // set source position of all managed sounds void SGSoundMgr::set_source_pos_all( ALfloat *pos ) { - if ( isnan(pos[0]) || isnan(pos[1]) || isnan(pos[2]) ) { + if ( std::isnan(pos[0]) || std::isnan(pos[1]) || std::isnan(pos[2]) ) { // bail if a bad position is passed in return; } @@ -326,7 +328,7 @@ void SGSoundMgr::set_source_pos_all( ALf // set source velocity of all managed sounds void SGSoundMgr::set_source_vel_all( ALfloat *vel ) { - if ( isnan(vel[0]) || isnan(vel[1]) || isnan(vel[2]) ) { + if ( std::isnan(vel[0]) || std::isnan(vel[1]) || std::isnan(vel[2]) ) { // bail if a bad velocity is passed in return; }