]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
mktime: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:11:16 +0000 (23:11 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:11:16 +0000 (23:11 +0200)
* m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Remove irix_6_4_bug test.

ChangeLog
m4/mktime.m4

index ec0def696d821221ef5c08f71d4e65c67db36866..2ce200fdfdf1cf865d4d26e80b276ce19878bfcc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       mktime: Remove support for IRIX.
+       * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Remove irix_6_4_bug test.
+
        malloc-posix: Remove support for IRIX.
        * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Remove code for IRIX.
 
index eca6c4d892411686de57f9ee01ef1b5392704e3f..6d7243e330615bdf3b46933bd8ff78c844a130d1 100644 (file)
@@ -1,5 +1,5 @@
 # mktime.m4
-# serial 42
+# serial 43
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -112,22 +112,6 @@ mktime_test (time_t now)
           && mktime_test1 ((time_t) (time_t_min + now)));
 }
 
-static int
-irix_6_4_bug ()
-{
-  /* Based on code from Ariel Faigon.  */
-  struct tm tm;
-  tm.tm_year = 96;
-  tm.tm_mon = 3;
-  tm.tm_mday = 0;
-  tm.tm_hour = 0;
-  tm.tm_min = 0;
-  tm.tm_sec = 0;
-  tm.tm_isdst = -1;
-  mktime (&tm);
-  return tm.tm_mon == 2 && tm.tm_mday == 31;
-}
-
 static int
 bigtime_test (int j)
 {
@@ -255,12 +239,10 @@ main ()
       if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
         result |= 8;
     }
-  if (! irix_6_4_bug ())
-    result |= 16;
   if (! spring_forward_gap ())
-    result |= 32;
+    result |= 16;
   if (! year_2050_test () || ! indiana_test ())
-    result |= 64;
+    result |= 32;
   return result;
 }]])],
          [gl_cv_func_working_mktime=yes],