aboutsummaryrefslogtreecommitdiff
path: root/editors/manedit
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-12-11 21:31:07 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-12-11 21:31:07 +0000
commit63325f13cb304e8399d42e75776fec6d743ca1e7 (patch)
tree1efcfbb36435daab8091e17225c832e6a025e672 /editors/manedit
parenta39b734d83b1ab019683c6fbb006a68ad70581e6 (diff)
downloadports-63325f13cb304e8399d42e75776fec6d743ca1e7.tar.gz
ports-63325f13cb304e8399d42e75776fec6d743ca1e7.zip
Only use MNT_NODEV if it is defined.
Notes
Notes: svn path=/head/; revision=150910
Diffstat (limited to 'editors/manedit')
-rw-r--r--editors/manedit/files/mntent_compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/manedit/files/mntent_compat.c b/editors/manedit/files/mntent_compat.c
index 9112983e61e6..da8a68b79af6 100644
--- a/editors/manedit/files/mntent_compat.c
+++ b/editors/manedit/files/mntent_compat.c
@@ -37,7 +37,9 @@ struct mntent *getmntent(FILE * filep)
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_SYNCHRONOUS) getmntent_addopt(&c, "sync");
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_NOEXEC) getmntent_addopt(&c, "noexec");
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_NOSUID) getmntent_addopt(&c, "nosuid");
+#ifdef MNT_NODEV
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_NODEV) getmntent_addopt(&c, "nodev");
+#endif
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_UNION) getmntent_addopt(&c, "union");
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_ASYNC) getmntent_addopt(&c, "async");
if (getmntent_mntbufp[getmntent_mntpos].f_flags & MNT_NOATIME) getmntent_addopt(&c, "noatime");