diff --git a/tests/test_security_curve.cpp b/tests/test_security_curve.cpp index 556b13fe..9e3000c8 100644 --- a/tests/test_security_curve.cpp +++ b/tests/test_security_curve.cpp @@ -20,7 +20,9 @@ #include "testutil.hpp" #if defined (ZMQ_HAVE_WINDOWS) # include +# include # include +# define close closesocket #else # include # include diff --git a/tests/test_security_null.cpp b/tests/test_security_null.cpp index 910073c2..59226c7f 100644 --- a/tests/test_security_null.cpp +++ b/tests/test_security_null.cpp @@ -20,7 +20,9 @@ #include "testutil.hpp" #if defined (ZMQ_HAVE_WINDOWS) # include +# include # include +# define close closesocket #else # include # include @@ -138,14 +140,14 @@ int main (void) assert (server); rc = zmq_setsockopt (server, ZMQ_ZAP_DOMAIN, "WRONG", 5); assert (rc == 0); - rc = zmq_bind (server, "tcp://127.0.0.1:9002"); + rc = zmq_bind (server, "tcp://127.0.0.1:9003"); assert (rc == 0); struct sockaddr_in ip4addr; int s; ip4addr.sin_family = AF_INET; - ip4addr.sin_port = htons(9002); + ip4addr.sin_port = htons(9003); inet_pton(AF_INET, "127.0.0.1", &ip4addr.sin_addr); s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP); diff --git a/tests/test_security_plain.cpp b/tests/test_security_plain.cpp index a0ceeb14..c9f0b756 100644 --- a/tests/test_security_plain.cpp +++ b/tests/test_security_plain.cpp @@ -20,7 +20,9 @@ #include "testutil.hpp" #if defined (ZMQ_HAVE_WINDOWS) # include +# include # include +# define close closesocket #else # include # include