Messages in this thread | | | Date | Tue, 6 Apr 1999 14:29:23 +0200 | From | Jamie Lokier <> | Subject | Re: memcpy_tofs Where did it go? |
| |
Someone wrote: > [root@rscope epix]# gcc -c -D__KERNEL__ -DMODULE -O2 svm.c -o svm.o > In file included from /usr/include/_G_config.h:9, > from /usr/include/libio.h:31,
Don't include _any_ libc includes when compiling kernel modules, they aren't valid in this context. It is a bug in your C source file. Glibc or older libc.
Alan Cox wrote: > Don't mix glibc and kernel includes
Unless you have to because the glibc includes aren't complete. O_DIRECTORY anyone? Then watch as your program fails to compile. _Must_ <linux/fcntl.h> and <fcntl.h> be incompatible?
Personally I Autoconf my way around this disaster area. Ugly but works.
-- Jamie
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |