* Makefile: Build the make-map.exe in Mono.Unix.Native; add /nowarn:0618 to
[mono.git] / mcs / class / Mono.Posix / Mono.Unix / UnixDriveInfo.cs
index 2a0159e3eafcb6ae3f87e016017da7d459a9fb8e..c2280980b103cd2b049a4eadc30d2ec00178c8f0 100644 (file)
@@ -77,7 +77,7 @@ namespace Mono.Unix {
                }
 
                public long AvailableFreeSpace {
-                       get {Refresh (); return (long) (stat.f_bavail * stat.f_bsize);}
+                       get {Refresh (); return Convert.ToInt64 (stat.f_bavail * stat.f_bsize);}
                }
 
                public string DriveFormat {
@@ -115,6 +115,8 @@ namespace Mono.Unix {
                        // set {}
                }
 
+               [CLSCompliant(false)]
+               [Obsolete ("The return type of this property will change in the next release.")]
                public ulong MaximumFilenameLength {
                        get {Refresh (); return stat.f_namemax;}
                }