From ec7d8fb6bd7b9a83e354aa5cb1c812435d587fab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 31 Aug 2011 08:32:04 +0200 Subject: [PATCH] udp_server: don't use MSG_DONTWAIT on WIN32 Doesn't exist on mingw32. --- src/udp_server.c | 4 ++++ 1 file changed, 4 insertions(+) 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;