Merge pull request #178 from eataix/fix-build-on-freebsd

Fix build on FreeBSD
This commit is contained in:
Max Lv
2014-12-05 20:19:36 +08:00
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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
View File
@@ -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);