Skip to content

Commit

Permalink
Fixed blocking mudp for non-linux systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and maxsharabayko committed Mar 5, 2024
1 parent 09b71dc commit 663db78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xtransmit/udp_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ int socket::udp::write(const const_buffer &buffer, int timeout_ms)
return static_cast<size_t>(res);
}

#ifdef __linux__

socket::mudp::mudp(const UriParser& u)
: udp_base(u)
{
Expand Down Expand Up @@ -333,3 +335,4 @@ int socket::mudp::write(const const_buffer &buffer, int timeout_ms)

return static_cast<size_t>(res);
}
#endif // __linux__

0 comments on commit 663db78

Please sign in to comment.