mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 19:23:49 +02:00
debuggergdbmi: use errno of baseunix
git-svn-id: trunk@44178 -
This commit is contained in:
parent
f9ba490c53
commit
730a24305c
@ -34,7 +34,7 @@ interface
|
||||
uses
|
||||
SysUtils,
|
||||
{$IFDEF DBG_ENABLE_TERMINAL}
|
||||
IDEMiniLibC, Classes,
|
||||
IDEMiniLibC, BaseUnix, Classes,
|
||||
{$ENDIF}
|
||||
DebugUtils, DbgIntfDebuggerBase;
|
||||
|
||||
|
@ -61,8 +61,6 @@ type
|
||||
c_ospeed : speed_t;
|
||||
end;
|
||||
|
||||
function __errno_location: pcint; cdecl;external clib name '__errno_location';
|
||||
function errno : error_t;
|
||||
function tcgetattr(__fd:cint; __termios_p: Ptermios):cint;cdecl;external clib name 'tcgetattr';
|
||||
function tcsetattr(__fd:cint; __optional_actions:cint; __termios_p: Ptermios):cint;cdecl;external clib name 'tcsetattr';
|
||||
function __read(Handle: cint; var Buffer; Count: size_t): ssize_t; cdecl;external clib name 'read';
|
||||
@ -76,10 +74,5 @@ function fcntl(Handle: cint; Command: cint; Arg: clong): cint; cdecl;external cl
|
||||
|
||||
implementation
|
||||
|
||||
function errno : error_t;
|
||||
begin
|
||||
Result:=__errno_location()^;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user