瀏覽代碼

* fixed compilation on 64 bit cpus

git-svn-id: trunk@8333 -
Jonas Maebe 18 年之前
父節點
當前提交
cce61fa602
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      rtl/linux/linux.pp

+ 3 - 0
rtl/linux/linux.pp

@@ -39,7 +39,10 @@ type
     totalhigh: culong;                 //* Total high memory size */
     totalhigh: culong;                 //* Total high memory size */
     freehigh: culong;                  //* Available high memory size */
     freehigh: culong;                  //* Available high memory size */
     mem_unit: cuint;                   //* Memory unit size in bytes */
     mem_unit: cuint;                   //* Memory unit size in bytes */
+{$ifndef cpu64}
+    { the upper bound of the array below is negative for 64 bit cpus }
     _f: array[0..19-2*sizeof(clong)-sizeof(cint)] of cChar;  //* Padding: libc5 uses this.. */
     _f: array[0..19-2*sizeof(clong)-sizeof(cint)] of cChar;  //* Padding: libc5 uses this.. */
+{$endif cpu64}
   end;
   end;
   PSysInfo = ^TSysInfo;
   PSysInfo = ^TSysInfo;