mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-25 10:09:38 +02:00
Problem: test_poller/use_fd_ipc/tcp use draft API
Solution: only use ZMQ_SERVER/CLIENT if the defines are available.
This commit is contained in:
@@ -130,6 +130,7 @@ void test_pair ()
|
||||
|
||||
void test_client_server ()
|
||||
{
|
||||
#if defined(ZMQ_SERVER) && defined(ZMQ_CLIENT)
|
||||
void *ctx = zmq_ctx_new ();
|
||||
assert (ctx);
|
||||
|
||||
@@ -203,6 +204,7 @@ void test_client_server ()
|
||||
|
||||
rc = zmq_ctx_term (ctx);
|
||||
assert (rc == 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
int main (void)
|
||||
|
||||
Reference in New Issue
Block a user