Browse Source

Adapt USE_STATX code to FPC_DOTTEDUNITS

Pierre Muller 2 years ago
parent
commit
603614e28e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/unix/sysutils.pp

+ 1 - 1
rtl/unix/sysutils.pp

@@ -997,7 +997,7 @@ end;
 Function FindGetFileInfo(const s: RawByteString; var f: TAbstractSearchRec; var Name: RawByteString):boolean;
 Function FindGetFileInfo(const s: RawByteString; var f: TAbstractSearchRec; var Name: RawByteString):boolean;
 Var
 Var
 {$ifdef USE_STATX}
 {$ifdef USE_STATX}
-  stx : linux.tstatx;
+  stx : {$ifdef FPC_DOTTEDUNITS}LinuxApi.{$else}linux.{$endif}tstatx;
 {$endif USE_STATX}
 {$endif USE_STATX}
   st : BU.stat;
   st : BU.stat;
   WinAttr : longint;
   WinAttr : longint;