summaryrefslogtreecommitdiff
path: root/net/mpich2/files/patch-aa
blob: f529089ca956ec3e05bb80a73df5f72fd7742312 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- romio/adio/common/ad_fstype.c.orig	Mon Jun 15 13:45:25 1998
+++ romio/adio/common/ad_fstype.c	Mon Oct 19 16:23:55 1998
@@ -91,7 +91,11 @@
 
     if (err) *error_code = MPI_ERR_UNKNOWN;
     else {
+#if (__FreeBSD_version>300004)
+	if ( !strncmp("nfs",fsbuf.f_fstypename,3) ) *fstype = ADIO_NFS;
+#else
 	if (fsbuf.f_type == MOUNT_NFS) *fstype = ADIO_NFS;
+#endif
 	else *fstype = ADIO_UFS;
 	*error_code = MPI_SUCCESS;
     }