nghttpx: Fix compile error if SOCK_NONBLOCK is undefined
This commit is contained in:
parent
795a22a320
commit
4dea318b5b
|
@ -202,7 +202,7 @@ std::unique_ptr<AcceptHandler> create_acceptor(ConnectionHandler *handler,
|
|||
if (fd == -1) {
|
||||
continue;
|
||||
}
|
||||
make_socket_nonblocking(fd);
|
||||
util::make_socket_nonblocking(fd);
|
||||
#endif // !SOCK_NONBLOCK
|
||||
int val = 1;
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val,
|
||||
|
|
Loading…
Reference in New Issue