diff --git a/src/valgrind_ctime_test.c b/src/valgrind_ctime_test.c index 2e2b6b1..a727a14 100644 --- a/src/valgrind_ctime_test.c +++ b/src/valgrind_ctime_test.c @@ -10,6 +10,10 @@ #include "assumptions.h" #include "checkmem.h" +#if !SECP256K1_CHECKMEM_ENABLED +# error "This tool cannot be compiled without memory-checking interface (valgrind)" +#endif + #ifdef ENABLE_MODULE_ECDH # include "../include/secp256k1_ecdh.h" #endif