libext2fs code not working

260 views Asked by At

I just tried to access my superblock information using the code as shown here:- http://paste.pocoo.org/show/340724/

However, I get the error as shown here:- http://paste.pocoo.org/show/340723/

My kernel version is 2.6.31-22-generic and I have not installed any libraries/additional kernel headers for the same. The OS is Ubuntu 9.10.

1

There are 1 answers

0
qbert220 On BEST ANSWER

You need to add

#include <linux/fs.h>

to the top of your source code.