@@ -7686,22 +7686,25 @@ EOPL
7686
7686
# of three digit per group separate by '.'s or '_'s. Names are extended
7687
7687
# with ".0.0" to ensure at least three elements for the pack.
7688
7688
# -- H.Merijn Brand (m)'06 23-10-2006
7689
+ # pack "s>" was introduced in perl-5.10, so I had to rewrite this to an
7690
+ # sprintf approach to support bases systems with 5.6.x and 5.8.x
7691
+ # -- H.Merijn Brand (m)'25 16-05-2025
7689
7692
7690
7693
my @inc_version_list;
7691
7694
my @candidates;
7692
7695
# XXX Redo to do opendir/readdir?
7693
7696
if (-d $stem) {
7694
7697
chdir($stem);
7695
7698
;@candidates = map {
7696
- [ $_, pack "s>s>s> ", split m/[._]/, "$_.0.0" ] } glob("5.*");
7699
+ [ $_, sprintf "%04d%04d%04d ", ( split m/[._]/, "$_.0.0")[0,1,2] ] } glob("5.*");
7697
7700
;@candidates = sort { $a->[1] cmp $b->[1]} @candidates;
7698
7701
}
7699
7702
else {
7700
7703
;@candidates = ();
7701
7704
}
7702
7705
7703
7706
my ($pversion, $aversion, $vsn5005) = map {
7704
- pack "s>s>s> ", split m/[._]/, "$_.0.0" } $version, $api_versionstring, "5.005";
7707
+ sprintf "%04d%04d%04d ", ( split m/[._]/, "$_.0.0")[0,1,2] } $version, $api_versionstring, "5.005";
7705
7708
foreach my $d (@candidates) {
7706
7709
if ($d->[1] lt $pversion) {
7707
7710
if ($d->[1] ge $aversion) {
@@ -13345,10 +13348,6 @@ esac
13345
13348
set i_fcntl
13346
13349
eval $setvar
13347
13350
13348
- : see if fdopendir exists
13349
- set fdopendir d_fdopendir
13350
- eval $inlibc
13351
-
13352
13351
: see if fork exists
13353
13352
set fork d_fork
13354
13353
eval $inlibc
@@ -14066,6 +14065,10 @@ eval $inlibc
14066
14065
set fdim d_fdim
14067
14066
eval $inlibc
14068
14067
14068
+ : see if fdopendir exists
14069
+ set fdopendir d_fdopendir
14070
+ eval $inlibc
14071
+
14069
14072
: see if fegetround exists
14070
14073
set fegetround d_fegetround
14071
14074
eval $inlibc
@@ -25044,6 +25047,7 @@ d_fd_macros='$d_fd_macros'
25044
25047
d_fd_set='$d_fd_set'
25045
25048
d_fdclose='$d_fdclose'
25046
25049
d_fdim='$d_fdim'
25050
+ d_fdopendir='$d_fdopendir'
25047
25051
d_fds_bits='$d_fds_bits'
25048
25052
d_fegetround='$d_fegetround'
25049
25053
d_ffs='$d_ffs'
@@ -25057,7 +25061,6 @@ d_flockproto='$d_flockproto'
25057
25061
d_fma='$d_fma'
25058
25062
d_fmax='$d_fmax'
25059
25063
d_fmin='$d_fmin'
25060
- d_fdopendir='$d_fdopendir'
25061
25064
d_fork='$d_fork'
25062
25065
d_fp_class='$d_fp_class'
25063
25066
d_fp_classify='$d_fp_classify'
0 commit comments