summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-26 15:41:03 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-26 15:41:03 -0300
commitab59a93feb6d2b697c06ee5fad3ff40a7d2b34ed (patch)
treee0d2287a87e88f253b7160b6fe84d213a51e09d6 /v4l
parent997c1fa3a879220de8463573bea0586ab8521cd9 (diff)
parent2a3734eea927c02985fd33e502f07915a09dd6b9 (diff)
downloadmediapointer-dvb-s2-ab59a93feb6d2b697c06ee5fad3ff40a7d2b34ed.tar.gz
mediapointer-dvb-s2-ab59a93feb6d2b697c06ee5fad3ff40a7d2b34ed.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/make_config_compat.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl
index d24b5f718..423dcff77 100755
--- a/v4l/scripts/make_config_compat.pl
+++ b/v4l/scripts/make_config_compat.pl
@@ -277,6 +277,13 @@ open IN, "<$infile" or die "File not found: $infile";
$out.= "#ifndef __CONFIG_COMPAT_H__\n";
$out.= "#define __CONFIG_COMPAT_H__\n\n";
$out.= "#include <linux/autoconf.h>\n\n";
+
+# mmdebug.h includes autoconf.h. So if this header exists,
+# then include it before our config is set.
+if (-f "$kdir/include/linux/mmdebug.h") {
+ $out.= "#include <linux/mmdebug.h>\n\n";
+}
+
while(<IN>) {
next unless /^(\S+)\s*:= (\S+)$/;
$out.= "#undef $1\n";