You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`libc` doesn't have `off_t` for WebAssembly without WASI, so it falls
back to `long`. Do the same in this crate to fix the build error when
trying to statically build libz for WebAssembly.
Rough code from `zconf.h` declaring `z_off_t`:
```c++
#ifndef Z_SOLO
# if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
// [...]
# ifndef z_off_t
# define z_off_t off_t
# endif
# endif
#endif
// [...]
#ifndef z_off_t
# define z_off_t long
#endif
```
Fixes#95.
0 commit comments