summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/rdist6/Makefile6
-rw-r--r--net/rdist6/files/patch-aj23
2 files changed, 24 insertions, 5 deletions
diff --git a/net/rdist6/Makefile b/net/rdist6/Makefile
index 33ed73ecd96d..14dd2a4fbcac 100644
--- a/net/rdist6/Makefile
+++ b/net/rdist6/Makefile
@@ -3,7 +3,7 @@
# Date created: 19 August 1995
# Whom: peter
#
-# $Id: Makefile,v 1.15 1998/10/14 00:10:17 jseger Exp $
+# $Id: Makefile,v 1.16 1998/11/11 05:37:29 asami Exp $
#
DISTNAME= rdist-6.1.4
@@ -16,10 +16,6 @@ MAINTAINER= peter@FreeBSD.org
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 300000
-BROKEN= MOUNT_NFS undeclared
-.endif
-
# To avoid confusion with /usr/bin/rdist, you may prefer otherwise.
RDIST_NAME?= rdist6
diff --git a/net/rdist6/files/patch-aj b/net/rdist6/files/patch-aj
new file mode 100644
index 000000000000..b289d18983e8
--- /dev/null
+++ b/net/rdist6/files/patch-aj
@@ -0,0 +1,23 @@
+--- src/filesys-os.c.dist Fri Feb 16 03:01:04 1996
++++ src/filesys-os.c Wed Feb 3 23:38:46 1999
+@@ -180,4 +180,5 @@
+ mntstruct.me_flags |= MEFLAG_READONLY;
+ #endif
++#ifdef MOUNT_NFS
+ switch ((ulong)((struct statfs*)mnt)->f_type) {
+ case MOUNT_NFS:
+@@ -191,4 +192,14 @@
+ break;
+ }
++#else
++ if ((((struct statfs*)mnt)->f_flags & MNT_LOCAL) == 0) {
++ (void) sprintf(remote_dev, "%s", mnt->f_mntfromname);
++ mntstruct.me_path = remote_dev;
++ mntstruct.me_type = METYPE_NFS;
++ } else {
++ mntstruct.me_path = mnt->f_mntonname;
++ mntstruct.me_type = METYPE_OTHER;
++ }
++#endif
+
+ mnt++;