From 817f30cea37fdc40e560dd39b03295981c26d523 Mon Sep 17 00:00:00 2001 From: "Flavio S. Glock" Date: Fri, 8 May 2026 14:23:03 +0200 Subject: [PATCH] fix: export mktime (and strftime) from bare `use POSIX` Stock Perl puts `mktime` in POSIX's default `@EXPORT`, so CPAN code that does `use POSIX` and calls `mktime` works. PerlOnJava's trimmed default export list omitted it, breaking Astro::SunTime (and any similar caller). Also export `strftime`, which is another default time export on core Perl and is implemented here. Fixes `./jcpan -t Astro::SunTime`. Generated with [Cursor](https://cursor.com) Co-Authored-By: Cursor --- src/main/perl/lib/POSIX.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/perl/lib/POSIX.pm b/src/main/perl/lib/POSIX.pm index 2afc99a62..280615a70 100644 --- a/src/main/perl/lib/POSIX.pm +++ b/src/main/perl/lib/POSIX.pm @@ -55,6 +55,7 @@ our @EXPORT = qw( WNOHANG WUNTRACED SEEK_CUR SEEK_END SEEK_SET F_OK R_OK W_OK X_OK + mktime strftime ); our @EXPORT_OK = qw( # Process functions