[MPlayer-dev-eng] [PATCH 1/11] MPlayer <-> GeeXboX patches port : PPC includes
Diego Biurrun
diego at biurrun.de
Sat Feb 25 08:24:15 CET 2006
On Fri, Feb 24, 2006 at 10:57:47PM +0100, Aurelien Jacobs wrote:
> On Fri, 24 Feb 2006 20:17:46 +0100
> Diego Biurrun <diego at biurrun.de> wrote:
>
> > On Fri, Feb 24, 2006 at 04:07:50PM +0100, Benjamin Zores wrote:
> > >
> > > This one fixes the #include <linux/pci.h> for ppc target (linux 2.6).
> >
> > Please elaborate why this is necessary..
> >
> > > --- MPlayer-20051213.orig/libdha/sysdep/pci_linux.c 2006-02-23 10:49:35.000000000 +0100
> > > +++ MPlayer-20051213/libdha/sysdep/pci_linux.c 2006-02-23 10:50:33.000000000 +0100
> > > @@ -131,6 +131,7 @@
> > > mplayer-dev-eng at mplayerhq.hu, colin at colino.net*/
> > > #include <fcntl.h>
> > > //#include <sys/io.h>
> > > +#define LINUX_MOD_DEVICETABLE_H
> > > #include <linux/pci.h>
> >
> > At the top of my /usr/include/linux/pci.h is:
> >
> > #ifdef __KERNEL__
> > #include <linux/mod_devicetable.h>
> > #endif
> >
> > and at the top of that file is
> >
> > #ifndef LINUX_MOD_DEVICETABLE_H
> > #define LINUX_MOD_DEVICETABLE_H
> >
> > So why do we need to define it separately?
>
> Here on a 2.6.15 kernel, there is no #ifdef __KERNEL__ so defining
> LINUX_MOD_DEVICETABLE_H prevent the inclusion of mod_devicetable.h.
I don't see how #defining LINUX_MOD_DEVICETABLE_H prevents the inclusion
of mod_devicetable.h if it only gets #included if __KERNEL__ is
#defined...
Diego
More information about the MPlayer-dev-eng
mailing list