Set ossl110 when version is 1.1.1

This commit is contained in:
Steven Fackler 2018-02-14 20:57:55 -08:00
parent e8fd63bae3
commit 9d3b02e58a
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ fn main() {
is_libressl = true; is_libressl = true;
} else if let Ok(version) = env::var("DEP_OPENSSL_VERSION") { } else if let Ok(version) = env::var("DEP_OPENSSL_VERSION") {
cfg.cfg(&format!("ossl{}", version), None); cfg.cfg(&format!("ossl{}", version), None);
if version == "111" {
cfg.cfg("ossl110", None);
}
} }
if let (Ok(version), Ok(patch)) = ( if let (Ok(version), Ok(patch)) = (
env::var("DEP_OPENSSL_VERSION"), env::var("DEP_OPENSSL_VERSION"),