0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

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.
This commit is contained in:
Luca Boccassi 2016-08-23 21:48:57 +01:00
parent f486176741
commit 0002824fc0

View File

@ -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);