mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:09:25 +02:00
* use libc unit GetLastError to implement GetLastOSError
git-svn-id: trunk@7582 -
This commit is contained in:
parent
6774847103
commit
f932ccbc59
@ -36,6 +36,7 @@ TYPE
|
|||||||
END;
|
END;
|
||||||
|
|
||||||
{$DEFINE HAS_SLEEP}
|
{$DEFINE HAS_SLEEP}
|
||||||
|
{$DEFINE HAS_OSERROR}
|
||||||
{ Include platform independent interface part }
|
{ Include platform independent interface part }
|
||||||
{$i sysutilh.inc}
|
{$i sysutilh.inc}
|
||||||
|
|
||||||
@ -632,6 +633,12 @@ begin
|
|||||||
result := ExecuteProcess (Path, params);
|
result := ExecuteProcess (Path, params);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Function GetLastOSError : Integer;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Result:=Integer(GetLastError);
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{******************************************************************************
|
{******************************************************************************
|
||||||
--- Exec ---
|
--- Exec ---
|
||||||
|
Loading…
Reference in New Issue
Block a user