diff options
author | Max Kellermann <max@duempel.org> | 2011-08-31 08:32:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-08-31 08:32:09 +0200 |
commit | ec7d8fb6bd7b9a83e354aa5cb1c812435d587fab (patch) | |
tree | deb258ff5086743858384f118ad9160501f3a25e | |
parent | 062948b110baf51cf05e8e3fd83815a90d8f16b5 (diff) | |
download | mpd-ec7d8fb6bd7b9a83e354aa5cb1c812435d587fab.tar.gz mpd-ec7d8fb6bd7b9a83e354aa5cb1c812435d587fab.tar.xz mpd-ec7d8fb6bd7b9a83e354aa5cb1c812435d587fab.zip |
udp_server: don't use MSG_DONTWAIT on WIN32
Doesn't exist on mingw32.
-rw-r--r-- | src/udp_server.c | 4 |
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; |