Browse Source

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 years ago
parent
commit
3c25184889
1 changed files with 2 additions and 0 deletions
  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;