Define __USE_LARGEFILE64 for sparc-linux, and adapt filed ffree type to that macro

git-svn-id: trunk@45837 -
This commit is contained in:
pierre 2020-07-23 21:03:19 +00:00
parent 1d5c714ff2
commit 2e6bba76bf

View File

@ -29,6 +29,9 @@ and all three 32-bit systems returned completely identical types too
(everything 32-bit except dev_t, which is assumed to be a result of devfs
introduction)
}
{$ifdef CPUSPARC}
{$define __USE_LARGEFILE64}
{$endif}
{$if defined(CPUMIPS) or defined(cpuaarch64) or defined(cpusparc64)}
{$define USE_PTHREAD_SIZEOF}
@ -202,7 +205,12 @@ Type
bfree, { free blocks in system }
bavail, { Available free blocks to non-root users }
files, { File nodes in system }
ffree : culong; { Free file nodes in system }
ffree :
{$ifdef __USE_LARGEFILE64}
culonglong; { Free file nodes in system }
{$else}
culong; { Free file nodes in system }
{$endif}
fsid : array[0..1] of cint; { File system ID }
namelen, { Maximum name length in system }
frsize : cint;