瀏覽代碼

# revisions: 33745

git-svn-id: branches/fixes_3_0@33794 -
marco 9 年之前
父節點
當前提交
8f9416e341
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/fcl-net/src/ssockets.pp

+ 4 - 1
packages/fcl-net/src/ssockets.pp

@@ -555,15 +555,18 @@ end;
 function TSocketServer.RunIdleLoop: Boolean;
 
 // Run Accept idle loop. Return True if there is a new connection waiting
-
+{$if defined(unix) or defined(windows)}
 var
   FDS: TFDSet;
   TimeV: TTimeVal;
+{$endif}
 begin
   Repeat
     Result:=False;
+{$if defined(unix) or defined(windows)}
     TimeV.tv_usec := (AcceptIdleTimeout mod 1000) * 1000;
     TimeV.tv_sec := AcceptIdleTimeout div 1000;
+{$endif}
 {$ifdef unix}
     FDS := Default(TFDSet);
     fpFD_Zero(FDS);