From 634b584ae3c0d1245261b1a008eb91df8b8bd281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 8 Dec 2010 17:21:36 +0000 Subject: [PATCH] [GB.NET] * BUG: Make gb.net compile correctly on FreeBSD. git-svn-id: svn://localhost/gambas/trunk@3351 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.net/src/CServerSocket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gb.net/src/CServerSocket.c b/gb.net/src/CServerSocket.c index d41bae9df..e31e6ae8f 100644 --- a/gb.net/src/CServerSocket.c +++ b/gb.net/src/CServerSocket.c @@ -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); //