Browse Source

2005-06-13 Miguel de Icaza <[email protected]>

	*  sys-statvfs.c (copy_statfs): f_flags is the field name on BSD,
	not f_flag. 

svn path=/trunk/mono/; revision=45929
Miguel de Icaza 20 years ago
parent
commit
3757bc3f45
2 changed files with 6 additions and 1 deletions
  1. 5 0
      support/ChangeLog
  2. 1 1
      support/sys-statvfs.c

+ 5 - 0
support/ChangeLog

@@ -1,3 +1,8 @@
+2005-06-13  Miguel de Icaza  <[email protected]>
+
+	*  sys-statvfs.c (copy_statfs): f_flags is the field name on BSD,
+	not f_flag. 
+
 2005-06-08  Jonathan Pryor  <[email protected]>
 
 	* Makefile.am: Create an unversioned library.  We won't make any gaurantees

+ 1 - 1
support/sys-statvfs.c

@@ -119,7 +119,7 @@ copy_statfs (struct Mono_Posix_Statvfs *to, struct statfs *from)
   to->f_files   = from->f_files;
   to->f_ffree   = from->f_ffree;
   to->f_favail  = from->f_ffree; /* OSX doesn't have f_avail */
-  Mono_Posix_ToMountFlags (from->f_flag, &to->f_flag);
+  Mono_Posix_ToMountFlags (from->f_flags, &to->f_flag);
 	// from->f_fsid is an int32[2], to->f_fsid is a uint64, 
 	// so this shouldn't lose anything.
 	memcpy (&to->f_fsid, &from->f_fsid, sizeof(to->f_fsid));