aboutsummaryrefslogtreecommitdiffstats
path: root/src/udp_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp_server.c')
-rw-r--r--src/udp_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udp_server.c b/src/udp_server.c
index 05779138b..5cfc816d6 100644
--- a/src/udp_server.c
+++ b/src/udp_server.c
@@ -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;