diff options
Diffstat (limited to 'src/_cffi_src/build_openssl.py')
-rw-r--r-- | src/_cffi_src/build_openssl.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index 2ff28d75..14ba5b35 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -38,8 +38,15 @@ def _osx_libraries(build_static): _PRE_INCLUDE = """ +#include <openssl/opensslv.h> +/* + LibreSSL removed e_os2.h from the public headers so we'll only include it + if we're using vanilla OpenSSL. +*/ +#if !defined(LIBRESSL_VERSION_NUMBER) #include <openssl/e_os2.h> -#if defined(OPENSSL_SYS_WINDOWS) +#endif +#if defined(_WIN32) #include <windows.h> #endif """ |