Skip to content

Commit

Permalink
Fix off_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Jan 17, 2024
1 parent 8e2d761 commit c70bf4e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build_zng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,10 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
.define("HAVE_BUILTIN_CTZLL", None)
.define("HAVE_THREAD_LOCAL", None)
.define("HAVE_VISIBILITY_HIDDEN", None)
.define("HAVE_VISIBILITY_INTERNAL", None);

if env::var("CARGO_CFG_TARGET_POINTER_WIDTH").as_deref() == Ok("64") {
cfg.define("_LARGEFILE64_SOURCE", "1")
.define("__USE_LARGEFILE64", None);
}
.define("HAVE_VISIBILITY_INTERNAL", None)
.define("Z_HAVE_UNISTD_H", None)
.define("_LARGEFILE64_SOURCE", "1")
.define("__USE_LARGEFILE64", None);
}

if !target.contains("windows") {
Expand Down

0 comments on commit c70bf4e

Please sign in to comment.