mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Only use MNT_NODEV if it is defined.
This commit is contained in:
parent
a39b734d83
commit
63325f13cb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150910
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user