This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
A builtin hard upper bound for sLOCALTIME_max to prevent AIX
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 29 Sep 2008 16:56:12 +0000 (16:56 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 29 Sep 2008 16:56:12 +0000 (16:56 +0000)
from stalling in the tests

p4raw-id: //depot/perl@34444

Configure

index 0b8eb7e..9e93cc4 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -25,7 +25,7 @@
 
 # $Id: Head.U 6 2006-08-25 22:21:46Z rmanfredi $
 #
-# Generated on Mon Sep 29 18:14:44 CEST 2008 [metaconfig 3.5 PL0]
+# Generated on Mon Sep 29 18:55:08 CEST 2008 [metaconfig 3.5 PL0]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -20122,7 +20122,10 @@ time_t pt;
 
 void local_check (time_t t)
 {
-    tmp = localtime (&t);
+    if (sizeof (time_t) > 4 && t > 0x7ffffffffffff000LL)
+       tmp = NULL;
+    else
+       tmp = localtime (&t);
     if (tmp == NULL || tmp->tm_year < -1900)
        tmp = NULL;
     else