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:52:10 +0000 (12:52 +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)

(cherry picked from commit fdbb3a865575136f3b432690357423c2512831fa)

crypto/engine/eng_devcrypto.c

index 717d7c27794ff1a3709c798b14b1100403e34211..a727c6f646069256c11b34a8b5293cb4f3294199 100644 (file)
@@ -26,7 +26,7 @@
 
 /* #define ENGINE_DEVCRYPTO_DEBUG */
 
-#ifdef CRYPTO_ALGORITHM_MIN
+#if CRYPTO_ALGORITHM_MIN < CRYPTO_ALGORITHM_MAX
 # define CHECK_BSD_STYLE_MACROS
 #endif