aboutsummaryrefslogtreecommitdiff
path: root/crypto/engine
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2003-10-29 04:00:14 +0000
committerGeoff Thorpe <geoff@openssl.org>2003-10-29 04:00:14 +0000
commit6145b0b1835f14167f8e9e4701251149f9c5373f (patch)
tree049a17d04e8190613e1dc9e200a186b956b37d36 /crypto/engine
parent2a85f77146eff995afae6f81b8601a64bb1a41fc (diff)
downloadopenssl-6145b0b1835f14167f8e9e4701251149f9c5373f.zip
openssl-6145b0b1835f14167f8e9e4701251149f9c5373f.tar.gz
openssl-6145b0b1835f14167f8e9e4701251149f9c5373f.tar.bz2
The "cryptodev" engine preprocessor logic used undefined symbols in
comparisons. It's better not to allow this, because it gives false positives when using compiler warnings that detect mistyped symbols.
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/eng_cryptodev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
index b32be08..e93b7fd 100644
--- a/crypto/engine/eng_cryptodev.c
+++ b/crypto/engine/eng_cryptodev.c
@@ -33,7 +33,8 @@
#include <openssl/engine.h>
#include <openssl/evp.h>
-#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#if (defined(__unix__) || defined(unix)) && !defined(USG) && \
+ (defined(OpenBSD) || defined(__FreeBSD_version))
#include <sys/param.h>
# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
# define HAVE_CRYPTODEV