aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/output/raop_output_plugin.c14
-rw-r--r--src/output/raop_output_plugin.h9
2 files changed, 16 insertions, 7 deletions
diff --git a/src/output/raop_output_plugin.c b/src/output/raop_output_plugin.c
index 2f15af218..69b73cacb 100644
--- a/src/output/raop_output_plugin.c
+++ b/src/output/raop_output_plugin.c
@@ -22,18 +22,20 @@
#include "raop_output_plugin.h"
#include <glib.h>
-#include <sys/socket.h>
-#include <sys/select.h>
#include <unistd.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <sys/poll.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/engine.h>
+#ifndef WIN32
+#include <arpa/inet.h>
+#include <sys/socket.h>
+#include <sys/select.h>
+#include <sys/poll.h>
+#include <netdb.h>
+#endif
+
#include <fcntl.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "raop"
diff --git a/src/output/raop_output_plugin.h b/src/output/raop_output_plugin.h
index b21a9691f..2995414de 100644
--- a/src/output/raop_output_plugin.h
+++ b/src/output/raop_output_plugin.h
@@ -22,10 +22,17 @@
#include <glib.h>
#include <stdbool.h>
-#include <netinet/in.h>
#include <sys/time.h>
#include <openssl/aes.h>
+#ifdef WIN32
+#define WINVER 0x0501
+#include <ws2tcpip.h>
+#include <winsock.h>
+#else
+#include <netinet/in.h>
+#endif
+
struct key_data {
unsigned char *key;
unsigned char *data;