diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-06 17:16:46 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-06 17:16:46 -0200 |
commit | 8d929dd40fc6ccd651aea85683f84d2c32600da9 (patch) | |
tree | 80fee04c06a7e2d9f06e5b1392cf62bd20a97612 /v4l/Makefile | |
parent | f7e781d3bbc0d084f09a60526ef7f3d705572dec (diff) | |
download | mediapointer-dvb-s2-8d929dd40fc6ccd651aea85683f84d2c32600da9.tar.gz mediapointer-dvb-s2-8d929dd40fc6ccd651aea85683f84d2c32600da9.tar.bz2 |
Fix compilation with kernel 2.6.24-rc1
From: Mauro Carvalho Chehab <mchehab@infradead.org>
- kbuild change:
CPPFLAGS should be replaced by KBUILD_CPPFLAGS;
- I2C_PEC is now defined at i2c-dev.h;
- task_pid_nr compat code is wrong.
Thanks to Maxim Levinsky for pointing me those issues
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r-- | v4l/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index 2080aa29e..75e9c50ef 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -157,6 +157,10 @@ CC += -I$(obj) ifeq ($(VERSION).$(PATCHLEVEL),2.6) CPPFLAGS := -I$(SUBDIRS)/../linux/include $(CPPFLAGS) -I$(SUBDIRS)/ + + # Needed for kernel 2.6.24 or upper + KBUILD_CPPFLAGS := -I$(SUBDIRS)/../linux/include $(KBUILD_CPPFLAGS) -I$(SUBDIRS)/ + MYCFLAGS := else MYCFLAGS := CFLAGS="-I../linux/include -D__KERNEL__ -I$(KDIR)/include -DEXPORT_SYMTAB" |