diff options
author | barner <barner@FreeBSD.org> | 2005-12-12 05:49:10 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-12-12 05:49:10 +0800 |
commit | ead00dcc75c1e2493f174fcc1b12dc5a557bd34c (patch) | |
tree | 371670eaf930baab78d759d8c3c4f5f50b251c30 /net/linneighborhood | |
parent | 43a7a809f8116a57dcf719be0230a30044c6c78c (diff) | |
download | freebsd-ports-gnome-ead00dcc75c1e2493f174fcc1b12dc5a557bd34c.tar.gz freebsd-ports-gnome-ead00dcc75c1e2493f174fcc1b12dc5a557bd34c.tar.zst freebsd-ports-gnome-ead00dcc75c1e2493f174fcc1b12dc5a557bd34c.zip |
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
Diffstat (limited to 'net/linneighborhood')
-rw-r--r-- | net/linneighborhood/files/mntent_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/linneighborhood/files/mntent_compat.c b/net/linneighborhood/files/mntent_compat.c index 62b2eb3b7581..f09b5f322b10 100644 --- a/net/linneighborhood/files/mntent_compat.c +++ b/net/linneighborhood/files/mntent_compat.c @@ -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"); |