mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
ad07b38b81
compiiles and runs, too! PR: 8364 and 10076 Submitted by: David Bader <dbader@eece.unm.edu>
15 lines
430 B
Plaintext
15 lines
430 B
Plaintext
--- 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;
|
|
}
|