mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01: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:
parent
f486176741
commit
0002824fc0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user