linux/mount.h patch

From: Stepan Kasal (kasal@matsrv.math.cas.cz)
Date: Wed Apr 26 2000 - 12:43:30 EST


Hi,

this patch fixes a problem that including mount.h outside the kernel
results in a "parse error." kdev_t is not visible outside of the kernel.

Stepan Kasal

--- linux/include/linux/mount.h.steve Wed Apr 26 13:42:16 2000
+++ linux/include/linux/mount.h Wed Apr 26 13:43:00 2000
@@ -11,6 +11,8 @@
 #ifndef _LINUX_MOUNT_H
 #define _LINUX_MOUNT_H
 
+#ifdef __KERNEL__
+
 struct vfsmount
 {
   kdev_t mnt_dev; /* Device this applies to */
@@ -19,6 +21,12 @@
   struct super_block *mnt_sb; /* pointer to superblock */
   struct vfsmount *mnt_next; /* pointer to next in linkedlist */
 };
+
+#else
+
+extern struct vfsmount;
+
+#endif
 
 /* MOUNT_REWRITE: fill these */
 static inline struct vfsmount *mntget(struct vfsmount *mnt)

-
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:11 EST