2005-08-25 Zoltan Varga <vargaz@gmail.com>
[mono.git] / support / sys-statvfs.c
index d3f571ef5421516224a5b49427fc860f7a993f7d..81680619767e576290685474a9e6a889f1c8be3d 100644 (file)
@@ -12,6 +12,7 @@
 #include <string.h>
 
 #include "mph.h"
+#include "map.h"
 
 #ifdef HAVE_SYS_STATVFS_H
 #include <sys/statvfs.h>
@@ -118,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));