1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/editors/bless/files/patch-src_ByteBuffer_SaveAsOperation.cs
Tom McLaughlin 67ff427854 Fix for namespace changes in Mono 1.1.13
Mono.Unix.Statvfs => Mono.Unix.Native.Statvfs
	Mono.Unix.Syscall.statvfs => Mono.Unix.Native.Syscall.statvfs

Project by:	BSD# <http://www.mono-project.com/Mono:FreeBSD>
2006-02-19 06:35:53 +00:00

14 lines
558 B
C#

--- src/ByteBuffer/SaveAsOperation.cs.orig Sun Sep 11 12:22:16 2005
+++ src/ByteBuffer/SaveAsOperation.cs Sat Feb 18 15:31:08 2006
@@ -63,8 +63,8 @@
{
#if ENABLE_UNIX_SPECIFIC
// get info about the device the file will be saved on
- Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
- Mono.Unix.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
+ Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
+ Mono.Unix.Native.Syscall.statvfs(Path.GetDirectoryName(fn), out stat);
long freeSpace=(long)(stat.f_bavail*stat.f_bsize);