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.
This commit is contained in:
Geoff Thorpe 2003-10-29 04:00:14 +00:00
parent 2a85f77146
commit 6145b0b183

View file

@ -33,7 +33,8 @@
#include <openssl/engine.h> #include <openssl/engine.h>
#include <openssl/evp.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> #include <sys/param.h>
# if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041) # if (OpenBSD >= 200112) || ((__FreeBSD_version >= 470101 && __FreeBSD_version < 500000) || __FreeBSD_version >= 500041)
# define HAVE_CRYPTODEV # define HAVE_CRYPTODEV