[MPlayer-dev-eng] [PATCH 1/11] MPlayer <-> GeeXboX patches port : PPC includes

Diego Biurrun diego at biurrun.de
Fri Feb 24 20:17:46 CET 2006


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?

Diego




More information about the MPlayer-dev-eng mailing list