diff --git a/examples/nettle-openssl.c b/examples/nettle-openssl.c
index 0df56bd2a9b443fe33144ee2ac8de227cf5ceca1..c0084547452995d9884eeb46a354a3d0a0e6a999 100644
--- a/examples/nettle-openssl.c
+++ b/examples/nettle-openssl.c
@@ -29,7 +29,7 @@
 
 /* Openssl glue, for comparative benchmarking only */
 
-#if HAVE_LIBCRYPTO
+#if WITH_OPENSSL
 
 /* No ancient ssleay compatibility */
 #define NCOMPAT
@@ -189,4 +189,4 @@ nettle_openssl_cast128 = {
   openssl_cast_encrypt, openssl_cast_decrypt
 };
 
-#endif /* HAVE_LIBCRYPTO */
+#endif /* WITH_OPENSSL */