mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 16:00:16 +02:00
ideminilibc defer O_NONBLOCK to BaseUnix.O_NONBLOCK; Issue #0020314
git-svn-id: trunk@58523 -
This commit is contained in:
parent
62434fa788
commit
81b75932ab
@ -8,6 +8,7 @@
|
|||||||
Always use types from the ctypes unit.
|
Always use types from the ctypes unit.
|
||||||
}
|
}
|
||||||
unit IDEMiniLibC;
|
unit IDEMiniLibC;
|
||||||
|
{$IFDEF linux} {$DEFINE DBG_ENABLE_TERMINAL} {$ENDIF}
|
||||||
|
|
||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
@ -17,6 +18,9 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
ctypes
|
ctypes
|
||||||
|
{$IFDEF DBG_ENABLE_TERMINAL}
|
||||||
|
, BaseUnix
|
||||||
|
{$ENDIF}
|
||||||
//,libc
|
//,libc
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -33,11 +37,9 @@ const
|
|||||||
F_SETFD = 2;
|
F_SETFD = 2;
|
||||||
F_GETFL = 3;
|
F_GETFL = 3;
|
||||||
F_SETFL = 4;
|
F_SETFL = 4;
|
||||||
{$ifdef cpusparc}
|
{$IFDEF DBG_ENABLE_TERMINAL}
|
||||||
O_NONBLOCK = $4000;
|
O_NONBLOCK = BaseUnix.O_NONBLOCK;
|
||||||
{$else}
|
{$ENDIF}
|
||||||
O_NONBLOCK = &04000;
|
|
||||||
{$endif}
|
|
||||||
EINTR = 4;
|
EINTR = 4;
|
||||||
NCCS = 32;
|
NCCS = 32;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user