mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:49:13 +02:00
fcl-net: fixed the build after r33728 on everything which is non-Unix and non-Windows...
git-svn-id: trunk@33745 -
This commit is contained in:
parent
5acd04d284
commit
e2b3c6389f
@ -555,15 +555,18 @@ end;
|
|||||||
function TSocketServer.RunIdleLoop: Boolean;
|
function TSocketServer.RunIdleLoop: Boolean;
|
||||||
|
|
||||||
// Run Accept idle loop. Return True if there is a new connection waiting
|
// Run Accept idle loop. Return True if there is a new connection waiting
|
||||||
|
{$if defined(unix) or defined(windows)}
|
||||||
var
|
var
|
||||||
FDS: TFDSet;
|
FDS: TFDSet;
|
||||||
TimeV: TTimeVal;
|
TimeV: TTimeVal;
|
||||||
|
{$endif}
|
||||||
begin
|
begin
|
||||||
Repeat
|
Repeat
|
||||||
Result:=False;
|
Result:=False;
|
||||||
|
{$if defined(unix) or defined(windows)}
|
||||||
TimeV.tv_usec := (AcceptIdleTimeout mod 1000) * 1000;
|
TimeV.tv_usec := (AcceptIdleTimeout mod 1000) * 1000;
|
||||||
TimeV.tv_sec := AcceptIdleTimeout div 1000;
|
TimeV.tv_sec := AcceptIdleTimeout div 1000;
|
||||||
|
{$endif}
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
FDS := Default(TFDSet);
|
FDS := Default(TFDSet);
|
||||||
fpFD_Zero(FDS);
|
fpFD_Zero(FDS);
|
||||||
|
Loading…
Reference in New Issue
Block a user