Really fix the build on FreeBSD 7 (after MNT_NODEV was removed)

Inspired by:	rodrigc's fix for editors/manedit
Reported by:	pointyhat via kris
This commit is contained in:
Simon Barner 2005-12-11 21:49:10 +00:00
parent ebe3cc4d05
commit 545069377c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150912
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ 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");
#if __FreeBSD_version < 700008
#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");

View file

@ -37,7 +37,7 @@ 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");
#if __FreeBSD_version < 700008
#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");