aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorSean McNamara <smcnam@gmail.com>2009-03-27 12:24:24 -0400
committerMax Kellermann <max@duempel.org>2009-03-27 18:03:03 +0100
commit37531f6f1eaea7fd33dd0f4b6f67f032c90eeca5 (patch)
tree7928e2faee3c2683abffc611d813a5aec8ac4c6f /src/input
parentb1e0bde5298e738632af1229896d391aec8d5c3f (diff)
downloadmpd-37531f6f1eaea7fd33dd0f4b6f67f032c90eeca5.tar.gz
mpd-37531f6f1eaea7fd33dd0f4b6f67f032c90eeca5.tar.xz
mpd-37531f6f1eaea7fd33dd0f4b6f67f032c90eeca5.zip
Add winsock2 headers for curl's use of select() on sockets
Diffstat (limited to '')
-rw-r--r--src/input/curl_input_plugin.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c
index a5c3c0636..f82b7aefd 100644
--- a/src/input/curl_input_plugin.c
+++ b/src/input/curl_input_plugin.c
@@ -25,7 +25,13 @@
#include "icy_metadata.h"
#include <assert.h>
-#include <sys/select.h>
+
+#if defined(WIN32)
+ #include <winsock2.h>
+#else
+ #include <sys/select.h>
+#endif
+
#include <string.h>
#include <errno.h>