diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-06 01:39:15 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-06 01:39:15 -0200 |
commit | d5c04e3ad97347a3b62795daac379028f2ade352 (patch) | |
tree | 648e5cacf6283d5929788e051384b9ffea469e9b /v4l/scripts | |
parent | 24f89f1e167838425e9ac9b9a1a4143a969ff0ac (diff) | |
download | mediapointer-dvb-s2-d5c04e3ad97347a3b62795daac379028f2ade352.tar.gz mediapointer-dvb-s2-d5c04e3ad97347a3b62795daac379028f2ade352.tar.bz2 |
fix compile with Fedora 10 kernel
From: Nicola Soranzo <nsoranzo@tiscali.it>
Fix compile error about ioremap_nocache with kernel 2.6.27.9 shipped by Fedora
10.
Signed-off-by: Nicola Soranzo <nsoranzo@tiscali.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/make_config_compat.pl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl index dc6653b0d..d24b5f718 100755 --- a/v4l/scripts/make_config_compat.pl +++ b/v4l/scripts/make_config_compat.pl @@ -235,6 +235,25 @@ sub check_usb_endpoint_type() close INNET; } +sub check_pci_ioremap_bar() +{ + my $file = "$kdir/include/linux/pci.h"; + my $need_compat = 1; + + open INNET, "<$file" or die "File not found: $file"; + while (<INNET>) { + if (m/pci_ioremap_bar/) { + $need_compat = 0; + last; + } + } + + if ($need_compat) { + $out.= "\n#define NEED_PCI_IOREMAP_BAR 1\n"; + } + close INNET; +} + sub check_other_dependencies() { check_spin_lock(); @@ -249,6 +268,7 @@ sub check_other_dependencies() check_algo_control(); check_net_dev(); check_usb_endpoint_type(); + check_pci_ioremap_bar(); } # Do the basic rules |