浏览代码

* fix rlim_t for i386 and other 32 bit CPUs supporting 64 bit fs calls

florian 1 月之前
父节点
当前提交
8720ab7d3d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      rtl/linux/ostypes.inc

+ 4 - 4
rtl/linux/ostypes.inc

@@ -464,10 +464,10 @@ const
   RLIMIT_LOCKS = 10;    { maximum file locks held  }
   RLIMIT_LOCKS = 10;    { maximum file locks held  }
 
 
 type
 type
-{$ifdef fs32bit}
-  rlim_t = cULong;
-{$else}
+{$ifdef CPU64}
   rlim_t = cULongLong;
   rlim_t = cULongLong;
+{$else}
+  rlim_t = cULong;
 {$endif}
 {$endif}
   PRLimit = ^TRLimit;
   PRLimit = ^TRLimit;
   TRLimit = record
   TRLimit = record
@@ -514,7 +514,7 @@ const
   { For 32 bit 2038 safe support, we have to use the kernel_timespec on linux which
   { For 32 bit 2038 safe support, we have to use the kernel_timespec on linux which
     makes all fields 64 bit regardless of the bit size of the CPU.
     makes all fields 64 bit regardless of the bit size of the CPU.
 
 
-    I have no idea though how to work around this when libc is used 
+    I have no idea though how to work around this when libc is used
   }
   }
 {$ifndef FPC_USE_LIBC}
 {$ifndef FPC_USE_LIBC}
   kernel_time64_t = clonglong;
   kernel_time64_t = clonglong;