diff --git a/src/ctx.cpp b/src/ctx.cpp index 86fcb986..666bd312 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -111,7 +111,7 @@ zmq::ctx_t::~ctx_t () // If we've done any Curve encryption, we may have a file handle // to /dev/urandom open that needs to be cleaned up. -#ifdef HAVE_LIBSODIUM +#if defined (ZMQ_USE_TWEETNACL) randombytes_close(); #endif