Commit 4dea318b authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix compile error if SOCK_NONBLOCK is undefined

parent 795a22a3
...@@ -202,7 +202,7 @@ std::unique_ptr<AcceptHandler> create_acceptor(ConnectionHandler *handler, ...@@ -202,7 +202,7 @@ std::unique_ptr<AcceptHandler> create_acceptor(ConnectionHandler *handler,
if (fd == -1) { if (fd == -1) {
continue; continue;
} }
make_socket_nonblocking(fd); util::make_socket_nonblocking(fd);
#endif // !SOCK_NONBLOCK #endif // !SOCK_NONBLOCK
int val = 1; int val = 1;
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment