瀏覽代碼

unbroke build for anything non Windows and non-Unix, where the nonblocking code is disabled anyway

git-svn-id: trunk@39572 -
Károly Balogh 7 年之前
父節點
當前提交
3c25184889
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/fcl-net/src/ssockets.pp

+ 2 - 0
packages/fcl-net/src/ssockets.pp

@@ -1076,12 +1076,14 @@ end;
 
 procedure TInetSocket.Connect;
 
+{$IFDEF HAVENONBLOCKING}
 Const
  {$IFDEF UNIX}
     ErrWouldBlock = ESysEInprogress;
  {$ELSE}
     ErrWouldBlock = WSAEWOULDBLOCK;
  {$ENDIF}
+{$ENDIF}
 
 Var
   A : THostAddr;