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:
Luca Boccassi
2016-05-02 19:40:30 +01:00
parent c293618ae8
commit f0a34e0ff5
3 changed files with 10 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ void test_pair ()
void test_client_server ()
{
#if defined(ZMQ_SERVER) && defined(ZMQ_CLIENT)
void *ctx = zmq_ctx_new ();
assert (ctx);
@@ -200,6 +201,7 @@ void test_client_server ()
rc = unlink ("/tmp/tester");
assert (rc == 0);
#endif
}
int main (void)