diff options
author | Gerd Knorr <devnull@localhost> | 2005-01-31 11:32:47 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2005-01-31 11:32:47 +0000 |
commit | e2e127390240243dc1f163eb96711e3792620a18 (patch) | |
tree | e053198478ecbbfe48feb84f9f10bc4a38984170 /v4l | |
parent | 6e7d9216e42a255b6382d67bbd81a0875e988ff7 (diff) | |
download | mediapointer-dvb-s2-e2e127390240243dc1f163eb96711e3792620a18.tar.gz mediapointer-dvb-s2-e2e127390240243dc1f163eb96711e3792620a18.tar.bz2 |
- add some defines to compat.h to build again on older kernels.
- misc fixes.
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 36bdcb188..468053472 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -22,6 +22,11 @@ # define __iomem #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11) +# define pci_choose_state(pci_dev, state) (state) +# define PCI_D0 (0) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,7) static inline unsigned long msecs_to_jiffies(const unsigned int m) { @@ -64,7 +69,6 @@ static inline unsigned long msleep_interruptible(unsigned int msecs) return jiffies_to_msecs(timeout); } #endif - /* * Local variables: * c-basic-offset: 8 |