diff --git a/mpeglib/lib/util/audio/audioIO.cpp b/mpeglib/lib/util/audio/audioIO.cpp index f2a1f7cb..ec84aa21 100644 --- a/mpeglib/lib/util/audio/audioIO.cpp +++ b/mpeglib/lib/util/audio/audioIO.cpp @@ -28,6 +28,8 @@ #ifdef OS_BSD #ifdef __OpenBSD__ #include "audioIO_sndio.cpp" +#elif defined(__NetBSD__) + #include "audioIO_SunOS.cpp" #else #include "audioIO_Linux.cpp" #endif diff --git a/mpeglib/lib/util/audio/audioIO_SunOS.cpp b/mpeglib/lib/util/audio/audioIO_SunOS.cpp index 4e9958a1..afbb28e3 100644 --- a/mpeglib/lib/util/audio/audioIO_SunOS.cpp +++ b/mpeglib/lib/util/audio/audioIO_SunOS.cpp @@ -8,13 +8,19 @@ */ #include +#ifdef OS_SunOS #include +#else +#include +#endif #include #include #include #include +#ifdef OS_BSD +#define uchar_t u_char +#endif #include "audioIO.h" -#include /* declare these static to effectively isolate the audio device */