aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2011-12-10 18:37:45 -0800
committerMax Kellermann <max@duempel.org>2011-12-12 09:19:34 +0100
commitef39da59731afd37f5e511caf1cf6ce71fd0d38b (patch)
tree72c5a8fbb2b22b4aa91f373e00cd16da9e26cb98 /src
parent81e8c4bbffd95d9b5f8166970bd9470e8903d4e8 (diff)
downloadmpd-ef39da59731afd37f5e511caf1cf6ce71fd0d38b.tar.gz
mpd-ef39da59731afd37f5e511caf1cf6ce71fd0d38b.tar.xz
mpd-ef39da59731afd37f5e511caf1cf6ce71fd0d38b.zip
configure/utils: Add ipv6 support for mingw build
Diffstat (limited to 'src')
-rw-r--r--src/utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 53494cc5d..6e85dd5ff 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -33,7 +33,11 @@
#include <pwd.h>
#endif
-#ifdef HAVE_IPV6
+#if HAVE_IPV6 && WIN32
+#include <winsock2.h>
+#endif
+
+#if HAVE_IPV6 && ! WIN32
#include <sys/socket.h>
#endif