aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/linneighborhood/files/mntent_compat.c2
-rw-r--r--sysutils/linneighborhood/files/mntent_compat.c2
2 files changed, 2 insertions, 2 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");
diff --git a/sysutils/linneighborhood/files/mntent_compat.c b/sysutils/linneighborhood/files/mntent_compat.c
index 62b2eb3b7581..f09b5f322b10 100644
--- a/sysutils/linneighborhood/files/mntent_compat.c
+++ b/sysutils/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");