mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 03:49:05 +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;
|
||||
|
||||
{$DEFINE HAS_SLEEP}
|
||||
{$DEFINE HAS_OSERROR}
|
||||
{ Include platform independent interface part }
|
||||
{$i sysutilh.inc}
|
||||
|
||||
@ -632,6 +633,12 @@ begin
|
||||
result := ExecuteProcess (Path, params);
|
||||
end;
|
||||
|
||||
Function GetLastOSError : Integer;
|
||||
|
||||
begin
|
||||
Result:=Integer(GetLastError);
|
||||
end;
|
||||
|
||||
|
||||
{******************************************************************************
|
||||
--- Exec ---
|
||||
|
Loading…
Reference in New Issue
Block a user