summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2005-12-11 22:09:15 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2005-12-11 22:09:15 +0000
commit1b4472d8fef1dfe2e2d648861af485688effecbe (patch)
tree919a85017412fb081696cacd4dd00f6bf1a859d6
parent. Try to bandaid a build problem on 7-CURRENT. This is a legitimate fix, (diff)
Only use MNT_NODEV if it is defined.
-rw-r--r--sysutils/filelight-kde4/files/mntent_compat.cpp2
-rw-r--r--sysutils/filelight/files/mntent_compat.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/sysutils/filelight-kde4/files/mntent_compat.cpp b/sysutils/filelight-kde4/files/mntent_compat.cpp
index ae8768030d54..0675cd2ccf7f 100644
--- a/sysutils/filelight-kde4/files/mntent_compat.cpp
+++ b/sysutils/filelight-kde4/files/mntent_compat.cpp
@@ -49,7 +49,9 @@ static struct optmap omap[] = {
{ MNT_SYNCHRONOUS, "sync" },
{ MNT_NOEXEC, "noexec" },
{ MNT_NOSUID, "nosuid" },
+#ifdef MNT_NODEV
{ MNT_NODEV, "nodev" },
+#endif
{ MNT_UNION, "union" },
{ MNT_ASYNC, "async" },
{ MNT_NOATIME, "noatime" },
diff --git a/sysutils/filelight/files/mntent_compat.cpp b/sysutils/filelight/files/mntent_compat.cpp
index ae8768030d54..0675cd2ccf7f 100644
--- a/sysutils/filelight/files/mntent_compat.cpp
+++ b/sysutils/filelight/files/mntent_compat.cpp
@@ -49,7 +49,9 @@ static struct optmap omap[] = {
{ MNT_SYNCHRONOUS, "sync" },
{ MNT_NOEXEC, "noexec" },
{ MNT_NOSUID, "nosuid" },
+#ifdef MNT_NODEV
{ MNT_NODEV, "nodev" },
+#endif
{ MNT_UNION, "union" },
{ MNT_ASYNC, "async" },
{ MNT_NOATIME, "noatime" },