Skip to content

Commit

Permalink
mbedtls_imports: Workaround errors on building with --all-features
Browse files Browse the repository at this point in the history
…in 'ci.sh'
  • Loading branch information
j-devel committed Nov 1, 2024
1 parent b2cd91c commit 3ecee58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions psa-crypto-sys/mbedtls_bindings/src/mbedtls_imports/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ pub type ptrdiff_t = isize;

use cfg_if::cfg_if;

#[cfg(feature = "mbedtls-std")]
cfg_if! {
if #[cfg(feature = "mbedtls-std")] {
pub use std::os::raw as raw_types;

#[cfg(feature = "mbedtls-nostd")]
} else {
pub mod raw_types {
// From libstd/os/raw.rs
super::cfg_if! {
Expand Down Expand Up @@ -77,6 +77,8 @@ pub mod raw_types {
__variant2,
}
}
}
}

#[cfg(unix)]
use libc;
Expand Down

0 comments on commit 3ecee58

Please sign in to comment.