Problem: build fails when CURVE security is disabled

Solution: use proper preprocessor macro
This commit is contained in:
Nikolay Edigaryev 2016-03-30 04:23:59 +05:00
parent 884e00cb4a
commit 8673fa7b03

View File

@ -99,7 +99,7 @@ zmq::ctx_t::ctx_t () :
// allow opening of /dev/urandom // allow opening of /dev/urandom
unsigned char tmpbytes[4]; unsigned char tmpbytes[4];
randombytes(tmpbytes, 4); randombytes(tmpbytes, 4);
#else #elif defined (HAVE_LIBSODIUM)
int rc = sodium_init (); int rc = sodium_init ();
zmq_assert (rc != -1); zmq_assert (rc != -1);
#endif #endif