Commit 7d87221a authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Fix bug for platform which does not have SOCK_NONBLOCK

parent 3162ffed
......@@ -953,7 +953,7 @@ int create_nonblock_udp_socket(int family) {
return -1;
}
#else // !SOCK_NONBLOCK
auto fd = socket(family, SOCK_STREAM, 0);
auto fd = socket(family, SOCK_DGRAM, 0);
if (fd == -1) {
return -1;
......
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