--- src/pcm-wav.cc.orig Mon Apr 16 17:30:40 2007 +++ src/pcm-wav.cc Mon Apr 16 17:31:31 2007 @@ -14,6 +14,16 @@ #include #include #include +#ifdef __NetBSD__ +# include +#elif __FreeBSD__ +# include +# define __BYTE_ORDER _BYTE_ORDER +# define __LITTLE_ENDIAN _LITTLE_ENDIAN +# define __BIG_ENDIAN _BIG_ENDIAN +#else +# include +#endif using std::cerr;