From: Bruno Haible Date: Wed, 10 Sep 2025 21:11:16 +0000 (+0200) Subject: mktime: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdccee6175845175c16ed95608c75e87d5a78590;p=thirdparty%2Fgnulib.git mktime: Remove support for IRIX. * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Remove irix_6_4_bug test. --- diff --git a/ChangeLog b/ChangeLog index ec0def696d..2ce200fdfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-09-10 Bruno Haible + 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. diff --git a/m4/mktime.m4 b/m4/mktime.m4 index eca6c4d892..6d7243e330 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -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],