From 1e0df1c16ea57ad72d1d640c0ee6d558c4b71ec3 Mon Sep 17 00:00:00 2001 From: Rin Okuyama Date: Wed, 12 May 2021 10:31:02 +0900 Subject: [PATCH] use64bitint is mandatory for NetBSD. Forcibly enable use64bitint for NetBSD 4.0 and later, where ino_t is uint64_t. Otherwise, miniperl cannot open files whose inode numbers are not within 32-bit integer. This results in random build failures. --- hints/netbsd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hints/netbsd.sh b/hints/netbsd.sh index 5c9f5bcbd50f..55c0d97d599c 100644 --- a/hints/netbsd.sh +++ b/hints/netbsd.sh @@ -300,3 +300,12 @@ EOM ;; esac EOCBU + +# use64bitint is mandatory for NetBSD 4.0 and later, where ino_t is uint64_t. +case "$osver" in +[0-3].*) + ;; +*) + use64bitint=yes + ;; +esac