* 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:
Benoît Minisini 2010-12-08 17:21:36 +00:00
parent a1c697eb93
commit 634b584ae3

View file

@ -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);
//