Skip to content

Commit

Permalink
Merge pull request #94 from tbu-/pr_wasm_static
Browse files Browse the repository at this point in the history
Fix static wasm build without wasi
  • Loading branch information
joshtriplett authored Apr 27, 2022
2 parents 93abccb + c200d28 commit fdd07d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ pub type voidpf = *mut c_void;
pub enum gzFile_s {}
pub enum internal_state {}

#[cfg(feature = "libc")]
#[cfg(all(feature = "libc", not(all(target_family = "wasm", target_os = "unknown"))))]
pub type z_off_t = libc::off_t;

#[cfg(all(feature = "libc", all(target_family = "wasm", target_os = "unknown")))]
pub type z_off_t = c_long;

#[repr(C)]
#[derive(Copy, Clone)]
pub struct gz_header {
Expand Down

0 comments on commit fdd07d4

Please sign in to comment.