The "cryptodev" engine preprocessor logic used undefined symbols in
authorGeoff Thorpe <geoff@openssl.org>
Wed, 29 Oct 2003 04:00:14 +0000 (04:00 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 29 Oct 2003 04:00:14 +0000 (04:00 +0000)
comparisons. It's better not to allow this, because it gives false
positives when using compiler warnings that detect mistyped symbols.

crypto/engine/eng_cryptodev.c

index b32be08c8e6f3149c95e6062801e6cf6232c3e85..e93b7fd1a23eb7d9fb232fdc1fdb6f2bd3d01805 100644 (file)
@@ -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