mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 13:13:44 +00:00
Merge pull request #178 from eataix/fix-build-on-freebsd
Fix build on FreeBSD
This commit is contained in:
@@ -89,9 +89,7 @@ static void close_and_free_server(EV_P_ struct server *server);
|
||||
|
||||
int verbose = 0;
|
||||
int udprelay = 0;
|
||||
#ifdef TCP_FASTOPEN
|
||||
static int fast_open = 0;
|
||||
#endif
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
static int nofile = 0;
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -292,7 +292,7 @@ int create_server_socket(const char *host, const char *port)
|
||||
int opt = 1;
|
||||
setsockopt(server_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
|
||||
#ifdef SO_NOSIGPIPE
|
||||
set_nosigpipe(remotefd);
|
||||
set_nosigpipe(server_sock);
|
||||
#endif
|
||||
|
||||
s = bind(server_sock, rp->ai_addr, rp->ai_addrlen);
|
||||
|
||||
Reference in New Issue
Block a user