[GB.NET]
* BUG: Make gb.net compile correctly on FreeBSD. git-svn-id: svn://localhost/gambas/trunk@3351 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
a1c697eb93
commit
634b584ae3
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ static int do_srvsock_listen(CSERVERSOCKET* _object,int mymax)
|
|||
setsockopt(SOCKET->socket, SOL_SOCKET, SO_REUSEADDR, &auth, sizeof(int));
|
||||
|
||||
// Define specific interface: does not really work... :-/
|
||||
#ifdef SO_BINDTODEVICE
|
||||
if (THIS->interface)
|
||||
{
|
||||
if (setsockopt(SOCKET->socket, SOL_SOCKET, SO_BINDTODEVICE, THIS->interface, GB.StringLength(THIS->interface)))
|
||||
|
@ -158,6 +159,7 @@ static int do_srvsock_listen(CSERVERSOCKET* _object,int mymax)
|
|||
return 15;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
SOCKET_update_timeout(SOCKET);
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue