diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-05-07 18:29:49 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2006-05-07 18:29:49 -0400 |
commit | 27e0a2e8659f2e3e37b7781c322647040d3566c3 (patch) | |
tree | 65e55b7fafb8f554522129d2bb4d8029ed71912f /v4l/compat.h | |
parent | b6e187a6550c6685b2e52b2d37053ab3dfe7c2cd (diff) | |
download | mediapointer-dvb-s2-27e0a2e8659f2e3e37b7781c322647040d3566c3.tar.gz mediapointer-dvb-s2-27e0a2e8659f2e3e37b7781c322647040d3566c3.tar.bz2 |
fix ability to pass compile-time build options when building from the hg repo
From: Michael Krufky <mkrufky@linuxtv.org>
When building in-kernel, compile-time build options are passed into the
compiler using '#include <linux/config.h>' . This file #include's
<linux/autoconf.h> , which is created on the fly by the kbuild system.
However, this does not work correctly when building from the mercurial
repository, since the kernel is built indepentently of v4l/.myconfig
This creates a "config-compat.h", which will be #include'd by compat.h
and will emulate <linux/config.h> for the local build.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r-- | v4l/compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index 0bcb238fb..b9138c7be 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -10,6 +10,7 @@ #include <linux/version.h> #include <linux/utsname.h> #include <linux/sched.h> +#include "config-compat.h" #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,18) # define minor(x) MINOR(x) |