Fix CHECK_BSD_STYLE_MACROS for OpenBSD and cryptodev-linux
authorRetropotenza <vincenzo.bono@gmail.com>
Fri, 31 May 2019 10:43:24 +0000 (12:43 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 31 May 2019 10:46:50 +0000 (12:46 +0200)
CLA: trivial

Fixes #8911

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/8866)

engines/e_devcrypto.c

index b1e8709..ac237cd 100644 (file)
@@ -25,7 +25,7 @@
 
 /* #define ENGINE_DEVCRYPTO_DEBUG */
 
-#ifdef CRYPTO_ALGORITHM_MIN
+#if CRYPTO_ALGORITHM_MIN < CRYPTO_ALGORITHM_MAX
 # define CHECK_BSD_STYLE_MACROS
 #endif