mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-14 02:57:47 +01:00
Problem: build fails when CURVE security is disabled
Solution: use proper preprocessor macro
This commit is contained in:
parent
884e00cb4a
commit
8673fa7b03
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user