mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 01:49:20 +02:00
* use __get_errno_ptr to implement GetLastOSError
git-svn-id: trunk@7584 -
This commit is contained in:
parent
2148281785
commit
e3164530b8
@ -26,6 +26,7 @@ uses DOS;
|
||||
{$I nwsys.inc}
|
||||
{$I errno.inc}
|
||||
{$DEFINE HAS_SLEEP}
|
||||
{$DEFINE HAS_OSERROR}
|
||||
|
||||
TYPE
|
||||
TNetwareFindData =
|
||||
@ -577,6 +578,13 @@ begin
|
||||
_delay (milliseconds);
|
||||
end;
|
||||
|
||||
Function GetLastOSError : Integer;
|
||||
|
||||
begin
|
||||
Result:=Integer(__get_errno_ptr^);
|
||||
end;
|
||||
|
||||
|
||||
|
||||
{****************************************************************************
|
||||
Initialization code
|
||||
|
Loading…
Reference in New Issue
Block a user