浏览代码

* enabled 64 bit filetruncate

git-svn-id: trunk@6739 -
Jonas Maebe 18 年之前
父节点
当前提交
6a7321c318
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      rtl/unix/sysutils.pp

+ 2 - 1
rtl/unix/sysutils.pp

@@ -241,10 +241,11 @@ end;
 Function FileTruncate (Handle: THandle; Size: Int64) : boolean;
 
 begin
+{$if defined(linux) and defined(fs32bit)}
   if Size > high (longint) then
    FileTruncate := false
-{$WARNING Support for 64-bit FS to be added!}
   else
+{$endif}
    FileTruncate:=fpftruncate(Handle,Size)>=0;
 end;