mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 01:29:08 +02:00
* fix utimensat and utimensat if the rtl is compiled with -dFPC_USE_LIBC
This commit is contained in:
parent
654d75b777
commit
9ee2eee293
@ -552,8 +552,8 @@ Type
|
||||
function statx(dfd: cint; filename: PAnsiChar; flags,mask: cuint; var buf: tstatx):cint; {$ifdef FPC_USE_LIBC} cdecl; weakexternal name 'statx'; {$ENDIF}
|
||||
|
||||
{$ifndef android}
|
||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:tkernel_timespecs;flags:cint):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'utimensat'; {$ENDIF}
|
||||
Function futimens(fd: cint; const times:tkernel_timespecs):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF}
|
||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:TTimespecArr;flags:cint):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'utimensat'; {$ENDIF}
|
||||
Function futimens(fd: cint; const times:TTimespecArr):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF}
|
||||
{$endif android}
|
||||
|
||||
implementation
|
||||
@ -877,7 +877,7 @@ end;
|
||||
|
||||
|
||||
{$ifndef android}
|
||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:tkernel_timespecs;flags:cint):cint;
|
||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:TTimespecArr;flags:cint):cint;
|
||||
var
|
||||
tsa: Array[0..1] of timespec;
|
||||
begin
|
||||
@ -897,7 +897,7 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
Function futimens(fd: cint; const times:tkernel_timespecs):cint;
|
||||
Function futimens(fd: cint; const times:TTimespecArr):cint;
|
||||
var
|
||||
tsa: Array[0..1] of timespec;
|
||||
begin
|
||||
@ -916,6 +916,7 @@ begin
|
||||
{$endif sizeof(clong)<=4}
|
||||
end;
|
||||
{$endif android}
|
||||
|
||||
{$endif not FPC_USE_LIBC}
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user