Fix bug for platform which does not have SOCK_NONBLOCK

This commit is contained in:
Tatsuhiro Tsujikawa 2020-06-04 15:00:32 +09:00
parent 3162ffedfc
commit 7d87221a8c
1 changed files with 1 additions and 1 deletions

View File

@ -953,7 +953,7 @@ int create_nonblock_udp_socket(int family) {
return -1; return -1;
} }
#else // !SOCK_NONBLOCK #else // !SOCK_NONBLOCK
auto fd = socket(family, SOCK_STREAM, 0); auto fd = socket(family, SOCK_DGRAM, 0);
if (fd == -1) { if (fd == -1) {
return -1; return -1;