summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippo Della Betta <filippo.dellabetta@telecomitalia.it>2012-03-05 17:57:53 +0100
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2012-03-05 20:54:59 -0500
commit7d17f097086741625bab28fd66f34f27125a27c4 (patch)
tree04a8e462f406b55770c1c21b25b9bcbb64426841
parentadf1c960fbeada54a62be0334294aa8b5da21f29 (diff)
Fixed compile on mingw/msys platform
-rw-r--r--stun/tests/Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/stun/tests/Makefile.am b/stun/tests/Makefile.am
index b109abf..8475c05 100644
--- a/stun/tests/Makefile.am
+++ b/stun/tests/Makefile.am
@@ -17,6 +17,11 @@ check_PROGRAMS = \
test-conncheck \
test-hmac
+if WINDOWS
+ AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
+ LDADD += -lws2_32
+endif
+
dist_check_SCRIPTS = check-bind.sh
TESTS = $(check_PROGRAMS)