aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-13 09:23:32 +0200
committerMax Kellermann <max@duempel.org>2011-10-13 09:23:32 +0200
commitc30c46cd5f0d1f857fc38a335ca499cc024e0c80 (patch)
treeed80e3cebf92ddc365be006ce7272daaccb1d186 /configure.ac
parentd3940179261cd4fe3ba632cf7d012917e0fbaa87 (diff)
downloadmpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.tar.gz
mpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.tar.xz
mpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.zip
configure.ac: define WINVER
Ensure that WINVER is defined early enough, so other system headers won't fall back to their default value. Specifically, this solves a build failure (-Werror) with mingw-w64 ("WINVER redefined").
Diffstat (limited to '')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c47c6d9e9..478639e7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,7 @@ AC_CANONICAL_HOST
case "$host_os" in
mingw32* | windows*)
+ AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501"
MPD_LIBS="$MPD_LIBS -lws2_32"
;;
esac