$OpenBSD$ $NetBSD: patch-ad,v 1.1.1.1 2007/07/12 19:56:14 drochner Exp $ --- simgear/sound/soundmgr_openal.cxx.orig Sat Nov 17 10:35:45 2007 +++ simgear/sound/soundmgr_openal.cxx Mon Sep 21 17:07:48 2009 @@ -37,6 +37,8 @@ # include #endif +#include + #if defined (__APPLE__) # ifdef __GNUC__ # if ( __GNUC__ >= 3 ) && ( __GNUC_MINOR__ >= 3 ) @@ -320,7 +322,7 @@ bool SGSoundMgr::stop( const string& refname ) { // 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; } @@ -336,7 +338,7 @@ void SGSoundMgr::set_source_pos_all( ALfloat *pos ) { // 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; }