Commit ec7d8fb6 authored by Max Kellermann's avatar Max Kellermann

udp_server: don't use MSG_DONTWAIT on WIN32

Doesn't exist on mingw32.
parent 062948b1
......@@ -57,7 +57,11 @@ udp_in_event(G_GNUC_UNUSED GIOChannel *source,
socklen_t address_length = sizeof(address_storage);
ssize_t nbytes = recvfrom(udp->fd, udp->buffer, sizeof(udp->buffer),
#ifdef WIN32
0,
#else
MSG_DONTWAIT,
#endif
address, &address_length);
if (nbytes <= 0)
return true;
......
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