mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-07 05:46:17 +02:00
Fix Fp*Stat calls when compiling with FPC_USE_LIBC for x86_64-linux.
rtl/linux/ostypes.inc: * correctly define the _STAT_VER_* constants for x86_64 (the ifdefs are based on those in the C header; for other platforms this needs to be checked) git-svn-id: trunk@29241 -
This commit is contained in:
parent
01278e2800
commit
fe49a4b60c
@ -75,10 +75,15 @@ TYPE
|
|||||||
{ include /include/asm-<cpu>/posix-types.h }
|
{ include /include/asm-<cpu>/posix-types.h }
|
||||||
|
|
||||||
const
|
const
|
||||||
|
{$ifndef cpux86_64}
|
||||||
_STAT_VER_LINUX_OLD = 1;
|
_STAT_VER_LINUX_OLD = 1;
|
||||||
_STAT_VER_KERNEL = 1;
|
_STAT_VER_KERNEL = 1;
|
||||||
_STAT_VER_SVR4 = 2;
|
_STAT_VER_SVR4 = 2;
|
||||||
_STAT_VER_LINUX = 3;
|
_STAT_VER_LINUX = 3;
|
||||||
|
{$else}
|
||||||
|
_STAT_VER_KERNEL = 0;
|
||||||
|
_STAT_VER_LINUX = 1;
|
||||||
|
{$endif}
|
||||||
_STAT_VER = _STAT_VER_LINUX;
|
_STAT_VER = _STAT_VER_LINUX;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
Loading…
Reference in New Issue
Block a user