From: Geoff Thorpe Date: Wed, 29 Oct 2003 04:00:14 +0000 (+0000) Subject: The "cryptodev" engine preprocessor logic used undefined symbols in X-Git-Tag: BEN_FIPS_TEST_4^2~11^2~64 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=6145b0b1835f14167f8e9e4701251149f9c5373f 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. --- diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index b32be08c8e..e93b7fd1a2 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -33,7 +33,8 @@ #include #include -#if (defined(__unix__) || defined(unix)) && !defined(USG) +#if (defined(__unix__) || defined(unix)) && !defined(USG) && \ + (defined(OpenBSD) || defined(__FreeBSD_version)) #include # if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) # define HAVE_CRYPTODEV