From 8673fa7b0346db81ce81f3b49bb07933c5b19060 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 30 Mar 2016 04:23:59 +0500 Subject: [PATCH] Problem: build fails when CURVE security is disabled Solution: use proper preprocessor macro --- src/ctx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctx.cpp b/src/ctx.cpp index 727d9428..e99c0eb8 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -99,7 +99,7 @@ zmq::ctx_t::ctx_t () : // allow opening of /dev/urandom unsigned char tmpbytes[4]; randombytes(tmpbytes, 4); -#else +#elif defined (HAVE_LIBSODIUM) int rc = sodium_init (); zmq_assert (rc != -1); #endif