[MPlayer-cvslog] r25065 - trunk/stream/stream_dvd.c

Ivo ivop at euronet.nl
Mon Nov 19 00:01:00 CET 2007


Hi,

On Sunday 18 November 2007 23:31, Reimar Döffinger wrote:
> On Sun, Nov 18, 2007 at 10:07:01PM +0100, Ivo wrote:
> > On Sunday 18 November 2007 20:39, Reimar Döffinger wrote:
> > > On Sun, Nov 18, 2007 at 08:06:05PM +0100, Ivo wrote:
> > > [...]
> > >
> > > > I think checking for byteswap.h in configure and setting
> > > > HAVE_BYTESWAP_H accordingly should suffice, shouldn't it?
> > >
> > > Still a mess either way.
> > > Try just moving the intreadwrite.h include directly below config.h
> > > If it works and if you have time, try moving it down until it breaks
> > > again so we know who includes byteswap.h.
> >
> > The offending include is:
> >
> > #include <linux/cdrom.h>
> >
> > If I place intreadwrite.h before it, it compiles ok. After it, it
> > fails.
>
> Feel free to place it somewhere before, but that header really has no
> business defining bswap stuff: IOW, I'd say yet another case of broken
> system headers.
> On all my systems (Gentoo, Debian testing, OpenSuSE 10.3, Fedora 8), that
> header only includes <asm/byteorder.h> and that one has the sense of only
> defining ___arch__swab32 etc.

I run LFS (sort of, I used more recent versions of most stuff), done in July 
2006. Those headers were the "best" available at that time :)

Anyway, why not use byteswap.h instead of the inline functions in bswap.h if 
it's available? That's what ffmpeg does. It (un)defines HAVE_BYTESWAP_H 
during configure. Why is that a mess?

--Ivo



More information about the MPlayer-cvslog mailing list