$NetBSD: patch-ac,v 1.3 2008/07/30 08:49:18 obache Exp $ --- kid3/oggfile.cpp.orig 2008-02-18 20:01:40.000000000 +0000 +++ kid3/oggfile.cpp @@ -34,6 +34,9 @@ #if QT_VERSION >= 0x040000 #include #endif +#ifdef __NetBSD__ +#include +#endif #include #ifdef WIN32 #include @@ -811,7 +814,7 @@ bool OggFile::FileInfo::read(const char* bitrate = vi->bitrate_lower; } } -#ifdef WIN32 +#if defined(WIN32) || (defined(__NetBSD__) && __NetBSD_Version__ < 299000000) duration = (long)::ov_time_total(&vf, -1); #else duration = ::lrint(::ov_time_total(&vf, -1));