OpenBSD defines a swap16() macro in <sys/endian.h> which propagates
through <sys/types.h> into <sys/time.h>.
--- src/test_streams/main.c.orig Thu Oct 25 15:18:25 2001
+++ src/test_streams/main.c Thu Oct 25 15:20:43 2001
@@ -38,6 +38,9 @@
static FLAC__bool is_big_endian_host;
+#ifdef swap16
+#undef swap16
+#endif
static void swap16(FLAC__int16 *i)
{
unsigned char *x = (unsigned char *)i, b;
--
Christian "naddy" Weisgerber
naddy@mips.inka.de
patched and checked in. thanks Josh --- Christian Weisgerber <naddy@mips.inka.de> wrote:> OpenBSD defines a swap16() macro in <sys/endian.h> which propagates > through <sys/types.h> into <sys/time.h>. > > --- src/test_streams/main.c.orig Thu Oct 25 15:18:25 2001 > +++ src/test_streams/main.c Thu Oct 25 15:20:43 2001 > @@ -38,6 +38,9 @@ > > static FLAC__bool is_big_endian_host; > > +#ifdef swap16 > +#undef swap16 > +#endif > static void swap16(FLAC__int16 *i) > { > unsigned char *x = (unsigned char *)i, b; > --__________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com