From bbe4f3ede45f242b495f151922ab5a86a89f80de Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Tue, 15 Mar 2016 06:26:34 +0100 Subject: [PATCH] Problem: does not build on Windows with libsodium Solution: fixed wrong condition around randombytes_close (). --- src/ctx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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