Skip to content

Commit

Permalink
Check is_gnu_time64_abi before setting preprocessor symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Feb 28, 2024
1 parent 7389d54 commit 6658547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3295,7 +3295,7 @@ fn test_linux(target: &str) {
// glibc versions older than 2.29.
cfg.define("__GLIBC_USE_DEPRECATED_SCANF", None);

if gnu && &env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" && !x32 {
if gnu && is_gnu_time64_abi() && &env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" && !x32 {
cfg.define("_TIME_BITS", Some("64"));
cfg.define("_FILE_OFFSET_BITS", Some("64"));
cfg.cfg("gnu_time64_abi", None);
Expand Down

0 comments on commit 6658547

Please sign in to comment.