problem doing #include <linux/fs.h> in 2.3.99-pre6

From: really mason@soo.com (mason@soo.com)
Date: Thu Apr 27 2000 - 05:27:19 EST


When i try to compile source that does #include <linux/fs.h>
(such as in e2fsprogs-1.18) i get the following error:

-----------
In file included from /usr/include/linux/dcache.h:5,
                 from /usr/include/linux/fs.h:19,
                 from ../../../lib/ext2fs/getsize.c:21:
/usr/include/linux/mount.h:16: parse error before `kdev_t'
/usr/include/linux/mount.h:16: warning: no semicolon at end of struct or union
/usr/include/linux/mount.h:21: parse error before `}'
/usr/include/linux/mount.h:20: storage size of `mnt_list' isn't known
make[1]: *** [getsize.o] Error 1
-----------

i can just make a dummy source file that does nothing but
include linux/fs.h and get the same error.

looks like mount.h gets included too early. dcache.h
didn't used to include mount.h and i can compile e2fsprogs
if i use the 2.3.49 kernel sources.

b
really <mason@soo.com>

-
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/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:12 EST