Commit 0002824f authored by Luca Boccassi's avatar Luca Boccassi

Problem: is_ipv6_available needs context to work on Windows

Solution: call the function after the zmq_ctx has been created, not
before, so that the relevant Windows system calls have been setup.
parent f4861767
......@@ -22,9 +22,9 @@
int main (void)
{
setup_test_environment();
int ipv6 = is_ipv6_available ();
void *ctx = zmq_ctx_new ();
assert (ctx);
int ipv6 = is_ipv6_available ();
/* Address wildcard, IPv6 disabled */
void *sb = zmq_socket (ctx, ZMQ_REP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment