* fix utimensat and utimensat if the rtl is compiled with -dFPC_USE_LIBC

This commit is contained in:
florian 2024-01-15 21:56:40 +01:00
parent 654d75b777
commit 9ee2eee293

View File

@ -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} function statx(dfd: cint; filename: PAnsiChar; flags,mask: cuint; var buf: tstatx):cint; {$ifdef FPC_USE_LIBC} cdecl; weakexternal name 'statx'; {$ENDIF}
{$ifndef android} {$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 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:tkernel_timespecs):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF} Function futimens(fd: cint; const times:TTimespecArr):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF}
{$endif android} {$endif android}
implementation implementation
@ -877,7 +877,7 @@ end;
{$ifndef android} {$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 var
tsa: Array[0..1] of timespec; tsa: Array[0..1] of timespec;
begin begin
@ -897,7 +897,7 @@ begin
end; end;
Function futimens(fd: cint; const times:tkernel_timespecs):cint; Function futimens(fd: cint; const times:TTimespecArr):cint;
var var
tsa: Array[0..1] of timespec; tsa: Array[0..1] of timespec;
begin begin
@ -916,6 +916,7 @@ begin
{$endif sizeof(clong)<=4} {$endif sizeof(clong)<=4}
end; end;
{$endif android} {$endif android}
{$endif not FPC_USE_LIBC} {$endif not FPC_USE_LIBC}
end. end.