mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Problem: testutil_unity uses undefined names on Windows
Solution: make compilation conditional
This commit is contained in:
parent
8de7e529ec
commit
db8c26fce3
@ -347,6 +347,7 @@ void bind_loopback_tipc (void *socket_, char *my_endpoint_, size_t len_)
|
|||||||
test_bind (socket_, "tipc://<*>", my_endpoint_, len_);
|
test_bind (socket_, "tipc://<*>", my_endpoint_, len_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU)
|
||||||
// utility function to create a random IPC endpoint, similar to what a ipc://*
|
// utility function to create a random IPC endpoint, similar to what a ipc://*
|
||||||
// wildcard binding does, but in a way it can be reused for multiple binds
|
// wildcard binding does, but in a way it can be reused for multiple binds
|
||||||
void make_random_ipc_endpoint (char *out_endpoint_)
|
void make_random_ipc_endpoint (char *out_endpoint_)
|
||||||
@ -366,3 +367,4 @@ void make_random_ipc_endpoint (char *out_endpoint_)
|
|||||||
strcpy (out_endpoint_, "ipc://");
|
strcpy (out_endpoint_, "ipc://");
|
||||||
strcat (out_endpoint_, random_file);
|
strcat (out_endpoint_, random_file);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user