Skip to content

Commit b7c2b23

Browse files
committed
Set _TIME_BITS=64 and _FILE_OFFSET_BITS=64 for the tests
1 parent 01323b2 commit b7c2b23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3184,6 +3184,11 @@ fn test_linux(target: &str) {
31843184
// glibc versions older than 2.29.
31853185
cfg.define("__GLIBC_USE_DEPRECATED_SCANF", None);
31863186

3187+
if gnu && (arm || i686 || mips32 || ppc) && !ppc64 {
3188+
cfg.define("_TIME_BITS", Some("64"));
3189+
cfg.define("_FILE_OFFSET_BITS", Some("64"));
3190+
}
3191+
31873192
headers! { cfg:
31883193
"ctype.h",
31893194
"dirent.h",

0 commit comments

Comments
 (0)