Commit fbdda72daf for perl
commit fbdda72daf16c5ed20ee2814df3e2f4bb7009aa4
Author: Andrew Hewus Fresh <afresh1@openbsd.org>
Date: Thu Sep 17 14:22:31 2026 -0700
Use the system atof() on vax instead of perl's
Because numbers on vax are special.
Thanks to miod@ for noting that they are special and leont on
irc.perl.org#p5p for the fix.
This resolves some floating point exceptions in perl.
While OpenBSD no longer supports vax, there is a fairly high chance
someone is keeping it alive locally.
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index 2be35bfe74..4087bc3d94 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -116,6 +116,12 @@ m88k-3.4)
;;
esac
+case "${ARCH}-${osvers}" in
+ vax-*)
+ ccflags="-DUSE_PERL_ATOF=0 $ccflags"
+ ;;
+esac
+
# This script UU/usethreads.cbu will get 'called-back' by Configure
# after it has prompted the user for whether to use threads.
cat > UU/usethreads.cbu <<'EOCBU'