mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
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>
This commit is contained in:
parent
5990ad4416
commit
67ff427854
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156357
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= bless
|
||||
PORTVERSION= 0.4.0
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= http://download.gna.org/bless/
|
||||
|
13
editors/bless/files/patch-src_ByteBuffer_SaveAsOperation.cs
Normal file
13
editors/bless/files/patch-src_ByteBuffer_SaveAsOperation.cs
Normal file
@ -0,0 +1,13 @@
|
||||
--- 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);
|
||||
|
13
editors/bless/files/patch-src_ByteBuffer_SaveOperation.cs
Normal file
13
editors/bless/files/patch-src_ByteBuffer_SaveOperation.cs
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/ByteBuffer/SaveOperation.cs.orig Wed May 11 16:10:19 2005
|
||||
+++ src/ByteBuffer/SaveOperation.cs Sat Feb 18 15:41:21 2006
|
||||
@@ -53,8 +53,8 @@
|
||||
// get info about the device the file will be saved on
|
||||
FileInfo fi=new FileInfo(bb.Filename);
|
||||
|
||||
- Mono.Unix.Statvfs stat=new Mono.Unix.Statvfs();
|
||||
- Mono.Unix.Syscall.statvfs(bb.Filename, out stat);
|
||||
+ Mono.Unix.Native.Statvfs stat=new Mono.Unix.Native.Statvfs();
|
||||
+ Mono.Unix.Native.Syscall.statvfs(bb.Filename, out stat);
|
||||
|
||||
long freeSpace=(long)(stat.f_bavail*stat.f_bsize) + fi.Length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user