On Wednesday 07 April 2004 23:00, Richard wrote:
> I’m trying to recompile a character driver for RH7 under RH9 (2.4.20-8).
>
> I’m getting errors because /usr/include/linux/fs.h no longer has
> definitions for
>
> struct file_operations
> struct, inode
> struct file

My understanding is that all the headers in /usr/include are user-space 
headers. They are NOT used for compiling kernel drivers. For this reason they 
do not contain declarations of structs used only within the kernel (like 
inodes). 

You should compile the driver against the kernel headers, which if you have 
installed the kernel source RPM should be in /usr/src/linux-2.4/include/linux

Carl.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to