Not all C library's /usr/include/mntent.h are guaranteed to define MNTTYPE_NFS and MNTTYPE_AUTO. Since we already are defining a large number of MNTTYPE_* macros for our own use in mntopt.h, add fallback definitions for MNTTYPE_NFS and MNTTYPE_NOAUTO there. Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> --- mntopt.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mntopt.h b/mntopt.h index a70b4a4..3b33879 100644 --- a/mntopt.h +++ b/mntopt.h @@ -21,6 +21,10 @@ #define MNTTYPE_OCFS2 "ocfs2" /* Oracle Cluster filesystem */ #define MNTTYPE_GFS2 "gfs2" /* Red Hat Global filesystem 2 */ +#ifndef MNTTYPE_NFS +#define MNTTYPE_NFS "nfs" /* Network file system. */ +#endif + /* mount options */ #define MNTOPT_NOQUOTA "noquota" /* don't enforce quota */ #define MNTOPT_QUOTA "quota" /* enforce user quota */ @@ -34,4 +38,8 @@ #define MNTOPT_LOOP "loop" /* loopback mount */ #define MNTOPT_JQFMT "jqfmt" /* journaled quota format */ +#ifndef MNTOPT_NOAUTO +#define MNTOPT_NOAUTO "noauto" /* Do not auto mount. */ +#endif + #endif -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html