1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/net/mpich2/files/patch-aa

15 lines
430 B
Plaintext
Raw Normal View History

--- 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;
}