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

This commit is contained in:
florian 2025-06-08 14:23:16 +02:00
parent 98d8830eb7
commit 8720ab7d3d

View File

@ -464,10 +464,10 @@ const
RLIMIT_LOCKS = 10; { maximum file locks held }
type
{$ifdef fs32bit}
rlim_t = cULong;
{$else}
{$ifdef CPU64}
rlim_t = cULongLong;
{$else}
rlim_t = cULong;
{$endif}
PRLimit = ^TRLimit;
TRLimit = record
@ -514,7 +514,7 @@ const
{ 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.
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}
kernel_time64_t = clonglong;